projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5519d00
)
olpc_battery: Remove unneeded 'olpc_battery_trigger_uevent'
author
Anton Vorontsov
<cbouatmailru@gmail.com>
Thu, 24 Nov 2011 18:52:48 +0000
(22:52 +0400)
committer
Anton Vorontsov
<cbouatmailru@gmail.com>
Thu, 24 Nov 2011 19:07:00 +0000
(23:07 +0400)
It is no longer used, so we can safely remove it.
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/olpc_battery.c
patch
|
blob
|
history
diff --git
a/drivers/power/olpc_battery.c
b/drivers/power/olpc_battery.c
index dc60f61a3b9ec4275e660ab1faab658db16a1bdc..21e7c06724bfcddd956bb8b3adbdbd5d0959fe8d 100644
(file)
--- a/
drivers/power/olpc_battery.c
+++ b/
drivers/power/olpc_battery.c
@@
-525,14
+525,6
@@
static struct power_supply olpc_bat = {
.use_for_apm = 1,
};
-void olpc_battery_trigger_uevent(unsigned long cause)
-{
- if (cause & EC_SCI_SRC_ACPWR)
- kobject_uevent(&olpc_ac.dev->kobj, KOBJ_CHANGE);
- if (cause & (EC_SCI_SRC_BATERR|EC_SCI_SRC_BATSOC|EC_SCI_SRC_BATTERY))
- kobject_uevent(&olpc_bat.dev->kobj, KOBJ_CHANGE);
-}
-
static int olpc_battery_suspend(struct platform_device *pdev,
pm_message_t state)
{