From: Ken O'Brien Date: Sun, 29 May 2011 17:53:12 +0000 (+0100) Subject: apm_power: Fix style error in macros X-Git-Tag: Ubuntu-snapdragon-4.4.0-1050.54~16817^2~9 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=c84cad3d0fbb09dbfb30336ab05181cdbe097634;p=mirror_ubuntu-artful-kernel.git 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 Signed-off-by: Anton Vorontsov --- 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 @@ #include -#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)