diff options
author | Guenter Roeck <linux@roeck-us.net> | 2012-01-20 12:31:17 -0500 |
---|---|---|
committer | Guenter Roeck <guenter.roeck@ericsson.com> | 2012-03-18 21:26:56 -0400 |
commit | 780affe0e9162bd6aec8acdb6255d61e4b04abba (patch) | |
tree | dbefb56a5ab891088bf5f4438aecee96c52c8ba9 /drivers/hwmon/coretemp.c | |
parent | 3af2861e8b80676d32c5498f9ac1b2de70d3e19b (diff) |
hwmon: (coretemp) Fix checkpatch error
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>
Diffstat (limited to 'drivers/hwmon/coretemp.c')
-rw-r--r-- | drivers/hwmon/coretemp.c | 4 |
1 files changed, 2 insertions, 2 deletions
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"); | |||
57 | #define TOTAL_ATTRS (MAX_CORE_ATTRS + 1) | 57 | #define TOTAL_ATTRS (MAX_CORE_ATTRS + 1) |
58 | #define MAX_CORE_DATA (NUM_REAL_CORES + BASE_SYSFS_ATTR_NO) | 58 | #define MAX_CORE_DATA (NUM_REAL_CORES + BASE_SYSFS_ATTR_NO) |
59 | 59 | ||
60 | #define TO_PHYS_ID(cpu) cpu_data(cpu).phys_proc_id | 60 | #define TO_PHYS_ID(cpu) (cpu_data(cpu).phys_proc_id) |
61 | #define TO_CORE_ID(cpu) cpu_data(cpu).cpu_core_id | 61 | #define TO_CORE_ID(cpu) (cpu_data(cpu).cpu_core_id) |
62 | #define TO_ATTR_NO(cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) | 62 | #define TO_ATTR_NO(cpu) (TO_CORE_ID(cpu) + BASE_SYSFS_ATTR_NO) |
63 | 63 | ||
64 | #ifdef CONFIG_SMP | 64 | #ifdef CONFIG_SMP |