Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/
H A Dina238.c93 #define INA238_FIXED_SHUNT 20000 macro
276 *val = div_s64((s16)regval * INA238_FIXED_SHUNT * data->gain, in ina238_read_current()
300 power = div_u64(regval * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power()
314 power = div_u64((regval << 8) * 1000ULL * INA238_FIXED_SHUNT * in ina238_read_power()
348 1000ULL * INA238_FIXED_SHUNT * data->gain); in ina238_write_power()