diff options
author | Ken O'Brien <kernel@kenobrien.org> | 2011-05-29 13:53:12 -0400 |
---|---|---|
committer | Anton Vorontsov <cbouatmailru@gmail.com> | 2011-07-08 08:55:56 -0400 |
commit | c84cad3d0fbb09dbfb30336ab05181cdbe097634 (patch) | |
tree | 34a9ea184f0874aaeb8c0631ac22471bd91dcde2 | |
parent | f704d45ede331204b6f393ba7cf49353fe7936a7 (diff) |
apm_power: Fix style error in macros
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>
-rw-r--r-- | drivers/power/apm_power.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/power/apm_power.c b/drivers/power/apm_power.c index dc628cb2e762..8a612dec9139 100644 --- a/drivers/power/apm_power.c +++ b/drivers/power/apm_power.c | |||
@@ -14,11 +14,11 @@ | |||
14 | #include <linux/apm-emulation.h> | 14 | #include <linux/apm-emulation.h> |
15 | 15 | ||
16 | 16 | ||
17 | #define PSY_PROP(psy, prop, val) psy->get_property(psy, \ | 17 | #define PSY_PROP(psy, prop, val) (psy->get_property(psy, \ |
18 | POWER_SUPPLY_PROP_##prop, val) | 18 | POWER_SUPPLY_PROP_##prop, val)) |
19 | 19 | ||
20 | #define _MPSY_PROP(prop, val) main_battery->get_property(main_battery, \ | 20 | #define _MPSY_PROP(prop, val) (main_battery->get_property(main_battery, \ |
21 | prop, val) | 21 | prop, val)) |
22 | 22 | ||
23 | #define MPSY_PROP(prop, val) _MPSY_PROP(POWER_SUPPLY_PROP_##prop, val) | 23 | #define MPSY_PROP(prop, val) _MPSY_PROP(POWER_SUPPLY_PROP_##prop, val) |
24 | 24 | ||