mirror of
https://github.com/S3NEO/android_kernel_samsung_msm8226.git
synced 2024-11-07 03:47:13 +00:00
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>
This commit is contained in:
parent
f704d45ede
commit
c84cad3d0f
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue