Skip to contentSkip to conversation

ab8500_btemp: export two symblols

PATCH Superseded Hongbo Zhang 1 participant 2 messages Feb 6, 2013 – Feb 7, 2013

v2 of 8 Superseded Latest is v8 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 2/2 ab8500_btemp: export two symblols

Export ab8500_btemp_get and ab8500_btemp_get_batctrl_temp, thus the ab8500 hwmon driver can be compiled as module.

---
 drivers/power/ab8500_btemp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/power/ab8500_btemp.c +2 -0
index 20e2a7d..852f14a8 100644
@@ -123,6 +123,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
@@ -774,6 +775,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
Signature · 7 lines
1.8.0


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

Anton and David,
Sorry there is a typo, symblols should be symbols, what's more I will send v3 of this patch set, there should be more lines changed in this ab8500_btemp.c, so let's focus on the coming v3 iteration. Thanks.

Quoted 29 lines · Hongbo Zhang

Export ab8500_btemp_get and ab8500_btemp_get_batctrl_temp, thus the ab8500 hwmon driver can be compiled as module.

---
 drivers/power/ab8500_btemp.c | 2 ++
 1 file changed, 2 insertions(+)
drivers/power/ab8500_btemp.c +2 -1
index 20e2a7d..852f14a8 100644
@@ -123,6 +123,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
@@ -774,6 +775,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
--
Quoted 2 lines

1.8.0

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