Skip to content

Commit

Permalink
apm_power: Fix style error in macros
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ken O'Brien authored and Anton Vorontsov committed Jul 8, 2011
1 parent f704d45 commit c84cad3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions drivers/power/apm_power.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit c84cad3

Please sign in to comment.