Commit ff3417e7 authored by Daniel Mack's avatar Daniel Mack Committed by Anton Vorontsov

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: default avatarDaniel Mack <daniel@caiaq.de>
Cc: Ian Molton <spyro@f2s.com>
Cc: Matt Reimer <mreimer@vpop.net>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent 02d0d275
...@@ -18,7 +18,9 @@ ...@@ -18,7 +18,9 @@
#include <linux/power_supply.h> #include <linux/power_supply.h>
#include "power_supply.h" #include "power_supply.h"
/* exported for the APM Power driver, APM emulation */
struct class *power_supply_class; struct class *power_supply_class;
EXPORT_SYMBOL_GPL(power_supply_class);
static int __power_supply_changed_work(struct device *dev, void *data) static int __power_supply_changed_work(struct device *dev, void *data)
{ {
...@@ -55,6 +57,7 @@ void power_supply_changed(struct power_supply *psy) ...@@ -55,6 +57,7 @@ void power_supply_changed(struct power_supply *psy)
schedule_work(&psy->changed_work); schedule_work(&psy->changed_work);
} }
EXPORT_SYMBOL_GPL(power_supply_changed);
static int __power_supply_am_i_supplied(struct device *dev, void *data) static int __power_supply_am_i_supplied(struct device *dev, void *data)
{ {
...@@ -86,6 +89,7 @@ int power_supply_am_i_supplied(struct power_supply *psy) ...@@ -86,6 +89,7 @@ int power_supply_am_i_supplied(struct power_supply *psy)
return error; return error;
} }
EXPORT_SYMBOL_GPL(power_supply_am_i_supplied);
static int __power_supply_is_system_supplied(struct device *dev, void *data) static int __power_supply_is_system_supplied(struct device *dev, void *data)
{ {
...@@ -110,6 +114,7 @@ int power_supply_is_system_supplied(void) ...@@ -110,6 +114,7 @@ int power_supply_is_system_supplied(void)
return error; return error;
} }
EXPORT_SYMBOL_GPL(power_supply_is_system_supplied);
int power_supply_register(struct device *parent, struct power_supply *psy) int power_supply_register(struct device *parent, struct power_supply *psy)
{ {
...@@ -144,6 +149,7 @@ int power_supply_register(struct device *parent, struct power_supply *psy) ...@@ -144,6 +149,7 @@ int power_supply_register(struct device *parent, struct power_supply *psy)
success: success:
return rc; return rc;
} }
EXPORT_SYMBOL_GPL(power_supply_register);
void power_supply_unregister(struct power_supply *psy) void power_supply_unregister(struct power_supply *psy)
{ {
...@@ -152,6 +158,7 @@ void power_supply_unregister(struct power_supply *psy) ...@@ -152,6 +158,7 @@ void power_supply_unregister(struct power_supply *psy)
power_supply_remove_attrs(psy); power_supply_remove_attrs(psy);
device_unregister(psy->dev); device_unregister(psy->dev);
} }
EXPORT_SYMBOL_GPL(power_supply_unregister);
static int __init power_supply_class_init(void) static int __init power_supply_class_init(void)
{ {
...@@ -170,15 +177,6 @@ static void __exit power_supply_class_exit(void) ...@@ -170,15 +177,6 @@ static void __exit power_supply_class_exit(void)
class_destroy(power_supply_class); class_destroy(power_supply_class);
} }
EXPORT_SYMBOL_GPL(power_supply_changed);
EXPORT_SYMBOL_GPL(power_supply_am_i_supplied);
EXPORT_SYMBOL_GPL(power_supply_is_system_supplied);
EXPORT_SYMBOL_GPL(power_supply_register);
EXPORT_SYMBOL_GPL(power_supply_unregister);
/* exported for the APM Power driver, APM emulation */
EXPORT_SYMBOL_GPL(power_supply_class);
subsys_initcall(power_supply_class_init); subsys_initcall(power_supply_class_init);
module_exit(power_supply_class_exit); module_exit(power_supply_class_exit);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment