diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-01-10 05:54:40 -0800 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-04-07 21:16:38 -0700 |
commit | 24f9c539b9b7ef8fcc97741027a31f40ef399741 (patch) | |
tree | fb3139765071ebb015436f970ee9d19880c8f7c9 /drivers/hwmon/gpio-fan.c | |
parent | 692fe501da4b851cbb60edc672679ad1b41e1602 (diff) | |
download | lwn-24f9c539b9b7ef8fcc97741027a31f40ef399741.tar.gz lwn-24f9c539b9b7ef8fcc97741027a31f40ef399741.zip |
hwmon: Fix 'Macros with complex values' checkpatch errors
Fix:
ERROR: Macros with complex values should be enclosed in parenthesis
when it is seen due to complex code and not due to multi-line variable
declarations.
Cc: Hans de Goede <hdegoede@redhat.com>
Cc: Alistair John Strachan <alistair@devzero.co.uk>
Acked-by: Alistair John Strachan <alistair@devzero.co.uk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/hwmon/gpio-fan.c')
-rw-r--r-- | drivers/hwmon/gpio-fan.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/hwmon/gpio-fan.c b/drivers/hwmon/gpio-fan.c index 39781945a5d2..4e02480b456a 100644 --- a/drivers/hwmon/gpio-fan.c +++ b/drivers/hwmon/gpio-fan.c @@ -619,7 +619,7 @@ static int gpio_fan_resume(struct device *dev) } static SIMPLE_DEV_PM_OPS(gpio_fan_pm, gpio_fan_suspend, gpio_fan_resume); -#define GPIO_FAN_PM &gpio_fan_pm +#define GPIO_FAN_PM (&gpio_fan_pm) #else #define GPIO_FAN_PM NULL #endif |