Skip to contentSkip to conversation

ab8500_btemp: make get_temp interface public

PATCH Superseded Hongbo Zhang 1 participant 1 message Feb 21, 2013 Multifunction devices (MFD)

v3 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/3 ab8500_btemp: make get_temp interface public

Make ab8500_btemp_get_temp() public, so that ab8500 hwmon driver can use it.

---
 drivers/power/ab8500_btemp.c         | 2 +-
 include/linux/mfd/abx500/ab8500-bm.h | 5 +++++
 2 files changed, 6 insertions(+), 1 deletion(-)
drivers/power/ab8500_btemp.c +1 -1
index 20e2a7d..e0e55e8 100644
@@ -727,7 +727,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;
 
include/linux/mfd/abx500/ab8500-bm.h +5 -0
index 44310c9..4dd79f6 100644
@@ -427,6 +427,7 @@ void ab8500_fg_reinit(void);
 void ab8500_charger_usb_state_changed(u8 bm_usb_state, u16 mA);
 struct ab8500_btemp *ab8500_btemp_get(void);
 int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp);
+int ab8500_btemp_get_temp(struct ab8500_btemp *btemp);
 struct ab8500_fg *ab8500_fg_get(void);
 int ab8500_fg_inst_curr_blocking(struct ab8500_fg *dev);
 int ab8500_fg_inst_curr_start(struct ab8500_fg *di);
@@ -451,6 +452,10 @@ static int ab8500_btemp_get_batctrl_temp(struct ab8500_btemp *btemp)
 {
 	return 0;
 }
+static int ab8500_btemp_get_temp(struct ab8500_btemp *btemp)
+{
+	return 0;
+}
 struct ab8500_fg *ab8500_fg_get(void)
 {
 	return NULL;
Signature · 7 lines
1.8.0


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors