Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Ken O'Brien and committed by
Anton Vorontsov
c84cad3d f704d45e

+4 -4
+4 -4
drivers/power/apm_power.c
··· 14 14 #include <linux/apm-emulation.h> 15 15 16 16 17 - #define PSY_PROP(psy, prop, val) psy->get_property(psy, \ 18 - POWER_SUPPLY_PROP_##prop, val) 17 + #define PSY_PROP(psy, prop, val) (psy->get_property(psy, \ 18 + POWER_SUPPLY_PROP_##prop, val)) 19 19 20 - #define _MPSY_PROP(prop, val) main_battery->get_property(main_battery, \ 21 - prop, val) 20 + #define _MPSY_PROP(prop, val) (main_battery->get_property(main_battery, \ 21 + prop, val)) 22 22 23 23 #define MPSY_PROP(prop, val) _MPSY_PROP(POWER_SUPPLY_PROP_##prop, val) 24 24