aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDaniel Mack <daniel@caiaq.de>2009-07-30 09:42:31 -0400
committerAnton Vorontsov <cbouatmailru@gmail.com>2009-07-30 09:49:00 -0400
commitff3417e7effe57cc002a8882a48bcb8e1a7e7267 (patch)
tree8590dfef7053ce79d427f4d8fed2bc24d0c15656 /drivers
parent02d0d2758821c38b2601d34dac544140af09e651 (diff)
power_supply: EXPORT_SYMBOL cleanups
While I'm at it, cleanup the power supply code so that EXPORT_SYMBOL_GPL appears directly after the symbole declaration. checkpatch.pl wants it that way. Signed-off-by: Daniel Mack <daniel@caiaq.de> Cc: Ian Molton <spyro@f2s.com> Cc: Matt Reimer <mreimer@vpop.net> Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/power/power_supply_core.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/drivers/power/power_supply_core.c b/drivers/power/power_supply_core.c
index 5520040449c4..12cd6e36ff1d 100644
--- a/drivers/power/power_supply_core.c
+++ b/drivers/power/power_supply_core.c
@@ -18,7 +18,9 @@
18#include <linux/power_supply.h> 18#include <linux/power_supply.h>
19#include "power_supply.h" 19#include "power_supply.h"
20 20
21/* exported for the APM Power driver, APM emulation */
21struct class *power_supply_class; 22struct class *power_supply_class;
23EXPORT_SYMBOL_GPL(power_supply_class);
22 24
23static int __power_supply_changed_work(struct device *dev, void *data) 25static int __power_supply_changed_work(struct device *dev, void *data)
24{ 26{
@@ -55,6 +57,7 @@ void power_supply_changed(struct power_supply *psy)
55 57
56 schedule_work(&psy->changed_work); 58 schedule_work(&psy->changed_work);
57} 59}
60EXPORT_SYMBOL_GPL(power_supply_changed);
58 61
59static int __power_supply_am_i_supplied(struct device *dev, void *data) 62static int __power_supply_am_i_supplied(struct device *dev, void *data)
60{ 63{
@@ -86,6 +89,7 @@ int power_supply_am_i_supplied(struct power_supply *psy)
86 89
87 return error; 90 return error;
88} 91}
92EXPORT_SYMBOL_GPL(power_supply_am_i_supplied);
89 93
90static int __power_supply_is_system_supplied(struct device *dev, void *data) 94static int __power_supply_is_system_supplied(struct device *dev, void *data)
91{ 95{
@@ -110,6 +114,7 @@ int power_supply_is_system_supplied(void)
110 114
111 return error; 115 return error;
112} 116}
117EXPORT_SYMBOL_GPL(power_supply_is_system_supplied);
113 118
114int power_supply_register(struct device *parent, struct power_supply *psy) 119int power_supply_register(struct device *parent, struct power_supply *psy)
115{ 120{
@@ -144,6 +149,7 @@ dev_create_failed:
144success: 149success:
145 return rc; 150 return rc;
146} 151}
152EXPORT_SYMBOL_GPL(power_supply_register);
147 153
148void power_supply_unregister(struct power_supply *psy) 154void power_supply_unregister(struct power_supply *psy)
149{ 155{
@@ -152,6 +158,7 @@ void power_supply_unregister(struct power_supply *psy)
152 power_supply_remove_attrs(psy); 158 power_supply_remove_attrs(psy);
153 device_unregister(psy->dev); 159 device_unregister(psy->dev);
154} 160}
161EXPORT_SYMBOL_GPL(power_supply_unregister);
155 162
156static int __init power_supply_class_init(void) 163static int __init power_supply_class_init(void)
157{ 164{
@@ -170,15 +177,6 @@ static void __exit power_supply_class_exit(void)
170 class_destroy(power_supply_class); 177 class_destroy(power_supply_class);
171} 178}
172 179
173EXPORT_SYMBOL_GPL(power_supply_changed);
174EXPORT_SYMBOL_GPL(power_supply_am_i_supplied);
175EXPORT_SYMBOL_GPL(power_supply_is_system_supplied);
176EXPORT_SYMBOL_GPL(power_supply_register);
177EXPORT_SYMBOL_GPL(power_supply_unregister);
178
179/* exported for the APM Power driver, APM emulation */
180EXPORT_SYMBOL_GPL(power_supply_class);
181
182subsys_initcall(power_supply_class_init); 180subsys_initcall(power_supply_class_init);
183module_exit(power_supply_class_exit); 181module_exit(power_supply_class_exit);
184 182