Home
last modified time | relevance | path

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

/openbmc/linux/drivers/hwmon/pmbus/
H A Dmax20730.c61 #define VOLT_FROM_REG(val) DIV_ROUND_CLOSEST((val), 1 << 9) macro
125 ret = VOLT_FROM_REG(data->mfr_voutmin * 10000); in max20730_debugfs_read()
277 ret = VOLT_FROM_REG(ret * 10000); in max20730_debugfs_read()
286 ret = VOLT_FROM_REG(ret * 10000); in max20730_debugfs_read()
/openbmc/linux/drivers/hwmon/
H A Df75375s.c504 #define VOLT_FROM_REG(val) ((val) * 8) macro
512 return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in[nr])); in show_in()
520 return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_max[nr])); in show_in_max()
528 return sprintf(buf, "%d\n", VOLT_FROM_REG(data->in_min[nr])); in show_in_min()