hwmon: (coretemp) Fix checkpatch error
authorGuenter Roeck <linux@roeck-us.net>
Fri, 20 Jan 2012 17:31:17 +0000 (09:31 -0800)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 19 Mar 2012 01:26:56 +0000 (18:26 -0700)
Fix:
ERROR: Macros with complex values should be enclosed in parenthesis

Cc: Fenghua Yu <fenghua.yu@intel.com>
Acked-By: Durgadoss R <durgadoss.r@intel.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/coretemp.c

index a6c6ec3..30e30e8 100644 (file)
@@ -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