Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A Dltc2992.c99 #define LTC2992_IADC_NANOV_LSB 12500 macro
544 *val = DIV_ROUND_CLOSEST(reg_val * LTC2992_IADC_NANOV_LSB, st->r_sense_uohm[channel]); in ltc2992_get_current()
553 reg_val = DIV_ROUND_CLOSEST(val * st->r_sense_uohm[channel], LTC2992_IADC_NANOV_LSB); in ltc2992_set_current()
618 *val = mul_u64_u32_div(reg_val, LTC2992_VADC_UV_LSB * LTC2992_IADC_NANOV_LSB, in ltc2992_get_power()
629 LTC2992_VADC_UV_LSB * LTC2992_IADC_NANOV_LSB); in ltc2992_set_power()