Home
last modified time | relevance | path

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

/openbmc/linux/drivers/iio/adc/
H A Dtwl4030-madc.c323 static int twl4030battery_temperature(int raw_volt) in twl4030battery_temperature() argument
328 volt = (raw_volt * TEMP_STEP_SIZE) / TEMP_PSR_R; in twl4030battery_temperature()
348 static int twl4030battery_current(int raw_volt) in twl4030battery_current() argument
358 return (raw_volt * CURR_STEP_SIZE) / CURR_PSR_R1; in twl4030battery_current()
360 return (raw_volt * CURR_STEP_SIZE) / CURR_PSR_R2; in twl4030battery_current()