From: Guenter Roeck Date: Fri, 20 Jan 2012 17:31:17 +0000 (-0800) Subject: hwmon: (coretemp) Fix checkpatch error X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=780affe0e9162bd6aec8acdb6255d61e4b04abba;p=linux-beck.git hwmon: (coretemp) Fix checkpatch error Fix: ERROR: Macros with complex values should be enclosed in parenthesis Cc: Fenghua Yu Acked-By: Durgadoss R Signed-off-by: Guenter Roeck --- diff --git a/drivers/hwmon/coretemp.c b/drivers/hwmon/coretemp.c index a6c6ec36615e..30e30e8e7e73 100644 --- a/drivers/hwmon/coretemp.c +++ b/drivers/hwmon/coretemp.c @@ -57,8 +57,8 @@ MODULE_PARM_DESC(tjmax, "TjMax value in degrees Celsius"); #define TOTAL_ATTRS (MAX_CORE_ATTRS + 1) #define MAX_CORE_DATA (NUM_REAL_CORES + BASE_SYSFS_ATTR_NO) -#define TO_PHYS_ID(cpu) cpu_data(cpu).phys_proc_id -#define TO_CORE_ID(cpu) cpu_data(cpu).cpu_core_id +#define TO_PHYS_ID(cpu) (cpu_data(cpu).phys_proc_id) +#define TO_CORE_ID(cpu) (cpu_data(cpu).cpu_core_id) #define TO_ATTR_NO(cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) #ifdef CONFIG_SMP