summaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/gpio-fan.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-01-10 14:54:40 +0100
committerGuenter Roeck <linux@roeck-us.net>2013-04-08 06:16:38 +0200
commit24f9c539b9b7ef8fcc97741027a31f40ef399741 (patch)
treefb3139765071ebb015436f970ee9d19880c8f7c9 /drivers/hwmon/gpio-fan.c
parenthwmon: checkpatch cleanup: Replace printk with pr_debug or dev_dbg as appropr... (diff)
downloadlinux-24f9c539b9b7ef8fcc97741027a31f40ef399741.tar.xz
linux-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.c2
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