mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
ab8500_btemp: Make ab8500_btemp_get* interfaces public
Make ab8500_btemp_get_temp interface public, export it and also export the ab8500_btemp_get, ab8500_btemp_get_batctrl_temp interfaces, so that the ab8500 hwmon driver can use them. Signed-off-by: Hongbo Zhang <[email protected]> Signed-off-by: Anton Vorontsov <[email protected]>
This commit is contained in:
parent
a92d4c7d02
commit
6f780965aa
2 changed files with 5 additions and 1 deletions
|
|
@ -131,6 +131,7 @@ struct ab8500_btemp *ab8500_btemp_get(void)
|
|||
|
||||
return btemp;
|
||||
}
|
||||
EXPORT_SYMBOL(ab8500_btemp_get);
|
||||
|
||||
/**
|
||||
* ab8500_btemp_batctrl_volt_to_res() - convert batctrl voltage to resistance
|
||||
|
|
@ -815,7 +816,7 @@ static void ab8500_btemp_periodic(struct ab8500_btemp *di,
|
|||
*
|
||||
* Returns battery temperature
|
||||
*/
|
||||
static int ab8500_btemp_get_temp(struct ab8500_btemp *di)
|
||||
int ab8500_btemp_get_temp(struct ab8500_btemp *di)
|
||||
{
|
||||
int temp = 0;
|
||||
|
||||
|
|
@ -851,6 +852,7 @@ static int ab8500_btemp_get_temp(struct ab8500_btemp *di)
|
|||
}
|
||||
return temp;
|
||||
}
|
||||
EXPORT_SYMBOL(ab8500_btemp_get_temp);
|
||||
|
||||
/**
|
||||
* ab8500_btemp_get_batctrl_temp() - get the temperature
|
||||
|
|
@ -862,6 +864,7 @@ int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp)
|
|||
{
|
||||
return btemp->bat_temp * 1000;
|
||||
}
|
||||
EXPORT_SYMBOL(ab8500_btemp_get_batctrl_temp);
|
||||
|
||||
/**
|
||||
* ab8500_btemp_get_property() - get the btemp properties
|
||||
|
|
|
|||
Loading…
Reference in a new issue