[prev in list] [next in list] [prev in thread] [next in thread]
List: ibm-acpi-devel
Subject: [ibm-acpi-devel] [PATCH 02/11] driver: thinkpad_acpi: add parenthesis around complex macro
From: Konrad Zapalowicz <bergo.torino () gmail ! com>
Date: 2014-04-21 19:10:47
Message-ID: 1398107456-31080-3-git-send-email-bergo.torino () gmail ! com
[Download RAW message or body]
This commit fixes the "Macros with complex values should be enclosed
in parenthesis" checkpatch error.
Signed-off-by: Konrad Zapalowicz <bergo.torino@gmail.com>
---
drivers/platform/x86/thinkpad_acpi.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index a306975..9506026 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -5801,7 +5801,7 @@ static struct sensor_device_attribute sensor_dev_attr_thermal_temp_input[] = {
};
#define THERMAL_ATTRS(X) \
- &sensor_dev_attr_thermal_temp_input[X].dev_attr.attr
+ (&sensor_dev_attr_thermal_temp_input[X].dev_attr.attr)
static struct attribute *thermal_temp_input_attr[] = {
THERMAL_ATTRS(8),
--
1.8.1.2
------------------------------------------------------------------------------
Is your legacy SCM system holding you back? Join Perforce May 7 to find out:
• 3 signs your SCM is hindering your productivity
• Requirements for releasing software faster
• Expert tips and advice for migrating your SCM now
http://p.sf.net/sfu/perforce
_______________________________________________
ibm-acpi-devel mailing list
ibm-acpi-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ibm-acpi-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic