* Re: [PATCH] power: Fix style error in Macros
[not found] <1306691592-29453-1-git-send-email-kernel@kenobrien.org>
@ 2011-07-08 13:06 ` Anton Vorontsov
0 siblings, 0 replies; only message in thread
From: Anton Vorontsov @ 2011-07-08 13:06 UTC (permalink / raw)
To: Ken O'Brien; +Cc: linux-kernel
On Sun, May 29, 2011 at 06:53:12PM +0100, Ken O'Brien wrote:
> Two Macros in the changed file contained complex expressions which were not
> enclosed by parentheses.
>
> Signed-off-by: Ken O'Brien <kernel@kenobrien.org>
> ---
Appled, thanks.
> drivers/power/apm_power.c | 8 ++++----
> 1 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/drivers/power/apm_power.c b/drivers/power/apm_power.c
> index dc628cb..8a612de 100644
> --- a/drivers/power/apm_power.c
> +++ b/drivers/power/apm_power.c
> @@ -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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-07-08 13:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <1306691592-29453-1-git-send-email-kernel@kenobrien.org>
2011-07-08 13:06 ` [PATCH] power: Fix style error in Macros Anton Vorontsov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®