projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f704d45
)
apm_power: Fix style error in macros
author
Ken O'Brien
<kernel@kenobrien.org>
Sun, 29 May 2011 17:53:12 +0000
(18:53 +0100)
committer
Anton Vorontsov
<cbouatmailru@gmail.com>
Fri, 8 Jul 2011 12:55:56 +0000
(16:55 +0400)
Two macros in the changed file contained complex expressions which
were not enclosed by parentheses.
Signed-off-by: Ken O'Brien <kernel@kenobrien.org>
Signed-off-by: Anton Vorontsov <cbouatmailru@gmail.com>
drivers/power/apm_power.c
patch
|
blob
|
history
diff --git
a/drivers/power/apm_power.c
b/drivers/power/apm_power.c
index dc628cb2e762803b6f3374d33a99feae5b08640c..8a612dec9139d27b4e0a814be38b6c71d6954fca 100644
(file)
--- a/
drivers/power/apm_power.c
+++ b/
drivers/power/apm_power.c
@@
-14,11
+14,11
@@
#include <linux/apm-emulation.h>
-#define PSY_PROP(psy, prop, val) psy->get_property(psy, \
- POWER_SUPPLY_PROP_##prop, val)
+#define PSY_PROP(psy, prop, val)
(
psy->get_property(psy, \
+ POWER_SUPPLY_PROP_##prop, val)
)
-#define _MPSY_PROP(prop, val) main_battery->get_property(main_battery, \
- prop, val)
+#define _MPSY_PROP(prop, val)
(
main_battery->get_property(main_battery, \
+ prop, val)
)
#define MPSY_PROP(prop, val) _MPSY_PROP(POWER_SUPPLY_PROP_##prop, val)