Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 165509
b: refs/heads/master
c: ff3417e
h: refs/heads/master
i:
  165507: ea3c0ff
v: v3
  • Loading branch information
Daniel Mack authored and Anton Vorontsov committed Jul 30, 2009
1 parent 12e5bb9 commit d6da7f2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 02d0d2758821c38b2601d34dac544140af09e651
refs/heads/master: ff3417e7effe57cc002a8882a48bcb8e1a7e7267
16 changes: 7 additions & 9 deletions trunk/drivers/power/power_supply_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
#include <linux/power_supply.h>
#include "power_supply.h"

/* exported for the APM Power driver, APM emulation */
struct class *power_supply_class;
EXPORT_SYMBOL_GPL(power_supply_class);

static int __power_supply_changed_work(struct device *dev, void *data)
{
Expand Down Expand Up @@ -55,6 +57,7 @@ void power_supply_changed(struct power_supply *psy)

schedule_work(&psy->changed_work);
}
EXPORT_SYMBOL_GPL(power_supply_changed);

static int __power_supply_am_i_supplied(struct device *dev, void *data)
{
Expand Down Expand Up @@ -86,6 +89,7 @@ int power_supply_am_i_supplied(struct power_supply *psy)

return error;
}
EXPORT_SYMBOL_GPL(power_supply_am_i_supplied);

static int __power_supply_is_system_supplied(struct device *dev, void *data)
{
Expand All @@ -110,6 +114,7 @@ int power_supply_is_system_supplied(void)

return error;
}
EXPORT_SYMBOL_GPL(power_supply_is_system_supplied);

int power_supply_register(struct device *parent, struct power_supply *psy)
{
Expand Down Expand Up @@ -144,6 +149,7 @@ int power_supply_register(struct device *parent, struct power_supply *psy)
success:
return rc;
}
EXPORT_SYMBOL_GPL(power_supply_register);

void power_supply_unregister(struct power_supply *psy)
{
Expand All @@ -152,6 +158,7 @@ void power_supply_unregister(struct power_supply *psy)
power_supply_remove_attrs(psy);
device_unregister(psy->dev);
}
EXPORT_SYMBOL_GPL(power_supply_unregister);

static int __init power_supply_class_init(void)
{
Expand All @@ -170,15 +177,6 @@ static void __exit power_supply_class_exit(void)
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);
module_exit(power_supply_class_exit);

Expand Down

0 comments on commit d6da7f2

Please sign in to comment.