Home
last modified time | relevance | path

Searched refs:samp_period (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.6/drivers/iio/light/
Dltr501.c434 int ret, samp_period, prst; in ltr501_read_intr_prst() local
442 ret = ltr501_als_read_samp_period(data, &samp_period); in ltr501_read_intr_prst()
446 *val2 = samp_period * prst; in ltr501_read_intr_prst()
453 ret = ltr501_ps_read_samp_period(data, &samp_period); in ltr501_read_intr_prst()
458 *val2 = samp_period * prst; in ltr501_read_intr_prst()
471 int ret, samp_period, new_val; in ltr501_write_intr_prst() local
482 ret = ltr501_als_read_samp_period(data, &samp_period); in ltr501_write_intr_prst()
487 if (period < samp_period) in ltr501_write_intr_prst()
490 new_val = DIV_ROUND_UP(period, samp_period); in ltr501_write_intr_prst()
502 ret = ltr501_ps_read_samp_period(data, &samp_period); in ltr501_write_intr_prst()
[all …]