Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c84cad3d authored by Ken O'Brien's avatar Ken O'Brien Committed by Anton Vorontsov
Browse files

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: default avatarKen O'Brien <kernel@kenobrien.org>
Signed-off-by: default avatarAnton Vorontsov <cbouatmailru@gmail.com>
parent f704d45e
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -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)