diff options
Diffstat (limited to 'drivers/power/ab5500_btemp.c')
-rw-r--r-- | drivers/power/ab5500_btemp.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/power/ab5500_btemp.c b/drivers/power/ab5500_btemp.c index 04ad6bbb7ac..2e2a5054a58 100644 --- a/drivers/power/ab5500_btemp.c +++ b/drivers/power/ab5500_btemp.c @@ -110,6 +110,17 @@ struct ab5500_btemp *ab5500_btemp_get(void) } /** + * ab5500_btemp_get_batctrl_temp() - get the temperature + * @di: pointer to the ab5500_btemp structure + * + * Returns the batctrl temperature in millidegrees + */ +int ab5500_btemp_get_batctrl_temp(struct ab5500_btemp *di) +{ + return di->bat_temp * 1000; +} + +/** * ab5500_btemp_batctrl_volt_to_res() - convert batctrl voltage to resistance * @di: pointer to the ab5500_btemp structure * @v_batctrl: measured batctrl voltage |