ab8500_btemp: export two symblols
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.
Signed-off-by Hongbo Zhang <[email protected]>
--- drivers/power/ab8500_btemp.c | 2 ++ 1 file changed, 2 insertions(+)
drivers/power/ab8500_btemp.c +2 -0
@@ -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
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_getandab8500_btemp_get_batctrl_temp, thus the ab8500 hwmon driver can be compiled as module.Signed-off-by Hongbo Zhang <[email protected]>--- drivers/power/ab8500_btemp.c | 2 ++ 1 file changed, 2 insertions(+)drivers/power/ab8500_btemp.c +2
-1@@ -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