Searched refs:th_lo (Results 1 – 1 of 1) sorted by relevance
| /linux-6.15/drivers/iio/light/ |
| H A D | opt4060.c | 811 static int opt4060_get_thresholds(struct opt4060_chip *chip, u32 *th_lo, u32 *th_hi) in opt4060_get_thresholds() argument 821 *th_lo = opt4060_calc_val_from_th_reg(regval); in opt4060_get_thresholds() 833 static int opt4060_set_thresholds(struct opt4060_chip *chip, u32 th_lo, u32 th_hi) in opt4060_set_thresholds() argument 837 ret = regmap_write(chip->regmap, OPT4060_THRESHOLD_LOW, opt4060_calc_th_reg(th_lo)); in opt4060_set_thresholds() 858 u32 th_lo, th_hi; in opt4060_read_event() local 868 ret = opt4060_get_thresholds(chip, &th_lo, &th_hi); in opt4060_read_event() 872 *val = th_lo; in opt4060_read_event() 894 u32 th_lo, th_hi; in opt4060_write_event() local 904 ret = opt4060_get_thresholds(chip, &th_lo, &th_hi); in opt4060_write_event() 908 th_lo = val; in opt4060_write_event() [all …]
|