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

/linux-4.4.14/drivers/hwmon/
H A Dda9052-hwmon.c161 int tjunc; da9052_read_tjunc() local
164 tjunc = da9052_reg_read(hwmon->da9052, DA9052_TJUNC_RES_REG); da9052_read_tjunc()
165 if (tjunc < 0) da9052_read_tjunc()
166 return tjunc; da9052_read_tjunc()
176 return sprintf(buf, "%d\n", 1708 * (tjunc - toffset) - 108800); da9052_read_tjunc()
H A Dda9055-hwmon.c183 int tjunc; da9055_read_tjunc() local
186 tjunc = da9055_adc_manual_read(hwmon, DA9055_ADC_TJUNC); da9055_read_tjunc()
187 if (tjunc < 0) da9055_read_tjunc()
188 return tjunc; da9055_read_tjunc()
198 return sprintf(buf, "%d\n", DIV_ROUND_CLOSEST(-4084 * (tjunc - toffset) da9055_read_tjunc()

Completed in 189 milliseconds