Home
last modified time | relevance | path

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

/openbmc/linux/drivers/power/supply/
H A Dltc2941-battery-gauge.c156 control = LTC294X_REG_CONTROL_PRESCALER_SET(prescaler_exp) | in ltc294x_reset()
448 u32 prescaler_exp; in ltc294x_i2c_probe() local
473 &prescaler_exp); in ltc294x_i2c_probe()
477 prescaler_exp = LTC2941_MAX_PRESCALER_EXP; in ltc294x_i2c_probe()
481 if (prescaler_exp > LTC2943_MAX_PRESCALER_EXP) in ltc294x_i2c_probe()
482 prescaler_exp = LTC2943_MAX_PRESCALER_EXP; in ltc294x_i2c_probe()
484 (12 - 2*prescaler_exp); in ltc294x_i2c_probe()
486 if (prescaler_exp > LTC2941_MAX_PRESCALER_EXP) in ltc294x_i2c_probe()
487 prescaler_exp = LTC2941_MAX_PRESCALER_EXP; in ltc294x_i2c_probe()
489 (7 - prescaler_exp); in ltc294x_i2c_probe()
[all …]