CHROMIUM: Input: atmel_mxt_ts - fix suspend_acq_interval_ms compile warning
authorDaniel Kurtz <djkurtz@chromium.org>
Mon, 3 Dec 2012 07:06:09 +0000 (15:06 +0800)
committerGerrit <chrome-bot@google.com>
Mon, 3 Dec 2012 15:54:13 +0000 (07:54 -0800)
By chance, struct attribute's "attr" field is first, so its address is the
address of the struct attribute, so this typo has no functional effect, it
just suppresses this compiler warning:

drivers/input/touchscreen/atmel_mxt_ts.c:2059:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/input/touchscreen/atmel_mxt_ts.c:2059:2: warning: (near initialization for 'mxt_power_attrs[0]') [enabled by default]

Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
BUG=chromium-os:36877
TEST=builds clean

Change-Id: If79a410afb82984472893673b97aa784249a3ca5
Reviewed-on: https://gerrit.chromium.org/gerrit/39069
Reviewed-by: Yufeng Shen <miletus@chromium.org>
Commit-Ready: Daniel Kurtz <djkurtz@chromium.org>
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Tested-by: Daniel Kurtz <djkurtz@chromium.org>
drivers/input/touchscreen/atmel_mxt_ts.c

index a0a563e..9dcfd23 100644 (file)
@@ -2056,7 +2056,7 @@ static const struct attribute_group mxt_attr_group = {
 };
 
 static struct attribute *mxt_power_attrs[] = {
-       &dev_attr_suspend_acq_interval_ms,
+       &dev_attr_suspend_acq_interval_ms.attr,
        NULL
 };