diff options
author | Daniel Mack <daniel@caiaq.de> | 2009-07-30 09:42:31 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2009-07-30 09:49:00 -0400 |
commit | ff3417e7effe57cc002a8882a48bcb8e1a7e7267 (patch) | |
tree | 8590dfef7053ce79d427f4d8fed2bc24d0c15656 /drivers/power | |
parent | 02d0d2758821c38b2601d34dac544140af09e651 (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/power')
-rw-r--r-- | drivers/power/power_supply_core.c | 16 |
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 */ | ||
21 | struct class *power_supply_class; | 22 | struct class *power_supply_class; |
23 | EXPORT_SYMBOL_GPL(power_supply_class); | ||
22 | 24 | ||
23 | static int __power_supply_changed_work(struct device *dev, void *data) | 25 | static 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 | } |
60 | EXPORT_SYMBOL_GPL(power_supply_changed); | ||
58 | 61 | ||
59 | static int __power_supply_am_i_supplied(struct device *dev, void *data) | 62 | static 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 | } |
92 | EXPORT_SYMBOL_GPL(power_supply_am_i_supplied); | ||
89 | 93 | ||
90 | static int __power_supply_is_system_supplied(struct device *dev, void *data) | 94 | static 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 | } |
117 | EXPORT_SYMBOL_GPL(power_supply_is_system_supplied); | ||
113 | 118 | ||
114 | int power_supply_register(struct device *parent, struct power_supply *psy) | 119 | int power_supply_register(struct device *parent, struct power_supply *psy) |
115 | { | 120 | { |
@@ -144,6 +149,7 @@ dev_create_failed: | |||
144 | success: | 149 | success: |
145 | return rc; | 150 | return rc; |
146 | } | 151 | } |
152 | EXPORT_SYMBOL_GPL(power_supply_register); | ||
147 | 153 | ||
148 | void power_supply_unregister(struct power_supply *psy) | 154 | void 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 | } |
161 | EXPORT_SYMBOL_GPL(power_supply_unregister); | ||
155 | 162 | ||
156 | static int __init power_supply_class_init(void) | 163 | static 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 | ||
173 | EXPORT_SYMBOL_GPL(power_supply_changed); | ||
174 | EXPORT_SYMBOL_GPL(power_supply_am_i_supplied); | ||
175 | EXPORT_SYMBOL_GPL(power_supply_is_system_supplied); | ||
176 | EXPORT_SYMBOL_GPL(power_supply_register); | ||
177 | EXPORT_SYMBOL_GPL(power_supply_unregister); | ||
178 | |||
179 | /* exported for the APM Power driver, APM emulation */ | ||
180 | EXPORT_SYMBOL_GPL(power_supply_class); | ||
181 | |||
182 | subsys_initcall(power_supply_class_init); | 180 | subsys_initcall(power_supply_class_init); |
183 | module_exit(power_supply_class_exit); | 181 | module_exit(power_supply_class_exit); |
184 | 182 | ||