aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHongbo Zhang <hongbo.zhang@linaro.org>2013-04-03 08:18:08 -0400
committerAnton Vorontsov <anton@enomsg.org>2013-04-16 20:32:48 -0400
commit6f780965aaf3354a3a6165d9018393a4a381b81d (patch)
treebe2c9b299d8c7437b498a0882acf527d71675599
parenta92d4c7d02d0af85b0edbf1d3c12b9e09bf1846d (diff)
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 <hongbo.zhang@linaro.org> Signed-off-by: Anton Vorontsov <anton@enomsg.org>
-rw-r--r--drivers/power/ab8500_btemp.c5
-rw-r--r--include/linux/mfd/abx500/ab8500-bm.h1
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/power/ab8500_btemp.c b/drivers/power/ab8500_btemp.c
index a9486f1a1b5b..d412d34bf3df 100644
--- a/drivers/power/ab8500_btemp.c
+++ b/drivers/power/ab8500_btemp.c
@@ -131,6 +131,7 @@ struct ab8500_btemp *ab8500_btemp_get(void)
131 131
132 return btemp; 132 return btemp;
133} 133}
134EXPORT_SYMBOL(ab8500_btemp_get);
134 135
135/** 136/**
136 * ab8500_btemp_batctrl_volt_to_res() - convert batctrl voltage to resistance 137 * ab8500_btemp_batctrl_volt_to_res() - convert batctrl voltage to resistance
@@ -815,7 +816,7 @@ static void ab8500_btemp_periodic(struct ab8500_btemp *di,
815 * 816 *
816 * Returns battery temperature 817 * Returns battery temperature
817 */ 818 */
818static int ab8500_btemp_get_temp(struct ab8500_btemp *di) 819int ab8500_btemp_get_temp(struct ab8500_btemp *di)
819{ 820{
820 int temp = 0; 821 int temp = 0;
821 822
@@ -851,6 +852,7 @@ static int ab8500_btemp_get_temp(struct ab8500_btemp *di)
851 } 852 }
852 return temp; 853 return temp;
853} 854}
855EXPORT_SYMBOL(ab8500_btemp_get_temp);
854 856
855/** 857/**
856 * ab8500_btemp_get_batctrl_temp() - get the temperature 858 * ab8500_btemp_get_batctrl_temp() - get the temperature
@@ -862,6 +864,7 @@ int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp)
862{ 864{
863 return btemp->bat_temp * 1000; 865 return btemp->bat_temp * 1000;
864} 866}
867EXPORT_SYMBOL(ab8500_btemp_get_batctrl_temp);
865 868
866/** 869/**
867 * ab8500_btemp_get_property() - get the btemp properties 870 * ab8500_btemp_get_property() - get the btemp properties
diff --git a/include/linux/mfd/abx500/ab8500-bm.h b/include/linux/mfd/abx500/ab8500-bm.h
index f5214dc651f9..cc892a8d8d6e 100644
--- a/include/linux/mfd/abx500/ab8500-bm.h
+++ b/include/linux/mfd/abx500/ab8500-bm.h
@@ -465,6 +465,7 @@ void ab8500_fg_reinit(void);
465void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA); 465void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA);
466struct ab8500_btemp *ab8500_btemp_get(void); 466struct ab8500_btemp *ab8500_btemp_get(void);
467int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp); 467int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp);
468int ab8500_btemp_get_temp(struct ab8500_btemp *btemp);
468struct ab8500_fg *ab8500_fg_get(void); 469struct ab8500_fg *ab8500_fg_get(void);
469int ab8500_fg_inst_curr_blocking(struct ab8500_fg *dev); 470int ab8500_fg_inst_curr_blocking(struct ab8500_fg *dev);
470int ab8500_fg_inst_curr_start(struct ab8500_fg *di); 471int ab8500_fg_inst_curr_start(struct ab8500_fg *di);