Searched refs:tjunc (Results 1 – 2 of 2) sorted by relevance
179 int tjunc; in da9055_tjunc_show() local182 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()
261 int tjunc; in da9052_tjunc_show() local264 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()