touchscreen: focaltech: fix coverity warning
authorYingyuan Zhu <yingyuan.zhu@amlogic.com>
Wed, 29 Aug 2018 08:45:39 +0000 (16:45 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Thu, 6 Sep 2018 13:57:33 +0000 (06:57 -0700)
PD#172715: touchscreen: focaltech: fix coverity warning

In the "drivers/amlogic/input/touchscreen/focaltech_touch/
focaltech_core.c" file,the variable "irq_gpio"and
"reset_gpio" is an unsigned integer, they cannot be
compared with 0.
This causes "Unsigned compared against 0.

Change-Id: Ic0ef2043e18550cc6c81867ef73f492d2dc446ec
Signed-off-by: Yingyuan Zhu <yingyuan.zhu@amlogic.com>
drivers/amlogic/input/touchscreen/focaltech_touch/focaltech_core.h

index 72c5637..d9ca8b0 100644 (file)
 
 struct fts_ts_platform_data
 {
-    u32 irq_gpio;
+    s32 irq_gpio;
     u32 irq_gpio_flags;
-    u32 reset_gpio;
+    s32 reset_gpio;
     u32 reset_gpio_flags;
     bool have_key;
     u32 key_number;