Searched refs:opt4060_calc_th_reg (Results 1 – 1 of 1) sorted by relevance
674 static u32 opt4060_calc_th_reg(u32 adc_val) in opt4060_calc_th_reg() function837 ret = regmap_write(chip->regmap, OPT4060_THRESHOLD_LOW, opt4060_calc_th_reg(th_lo)); in opt4060_set_thresholds()843 ret = regmap_write(chip->regmap, OPT4060_THRESHOLD_HIGH, opt4060_calc_th_reg(th_hi)); in opt4060_set_thresholds()