Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/hwmon/
Dda9055-hwmon.c179 int tjunc; in da9055_tjunc_show() local
182 tjunc = da9055_adc_manual_read(hwmon, DA9055_ADC_TJUNC); in da9055_tjunc_show()
183 if (tjunc < 0) in da9055_tjunc_show()
184 return tjunc; in da9055_tjunc_show()
194 return sprintf(buf, "%d\n", DIV_ROUND_CLOSEST(-4084 * (tjunc - toffset) in da9055_tjunc_show()
Dda9052-hwmon.c261 int tjunc; in da9052_tjunc_show() local
264 tjunc = da9052_reg_read(hwmon->da9052, DA9052_TJUNC_RES_REG); in da9052_tjunc_show()
265 if (tjunc < 0) in da9052_tjunc_show()
266 return tjunc; in da9052_tjunc_show()
276 return sprintf(buf, "%d\n", 1708 * (tjunc - toffset) - 108800); in da9052_tjunc_show()