[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1432573204-2923-1-git-send-email-shailendra.capricorn@gmail.com>
Date: Mon, 25 May 2015 22:30:04 +0530
From: Shailendra Verma <shailendra.capricorn@...il.com>
To: Dmitry Torokhov <dmitry.torokhov@...il.com>,
Jingoo Han <jg1.han@...sung.com>,
Ferruh Yigit <fery@...ress.com>,
"Rafael J. Wysocki" <rafael.j.wysocki@...el.com>,
Wolfram Sang <wsa@...-dreams.de>, linux-input@...r.kernel.org
Cc: linux-kernel@...r.kernel.org,
Shailendra Verma <shailendra.capricorn@...il.com>
Subject: [PATCH] Input:keyboard:samsung-keypad - Fix for correct return type
The return type of the function samsung_keypad_report() is bool but we are
returning the unsigned int value.So changing the unsigned int to bool type
and initializing with false.
Signed-off-by: Shailendra Verma <shailendra.capricorn@...il.com>
---
drivers/input/keyboard/samsung-keypad.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/input/keyboard/samsung-keypad.c b/drivers/input/keyboard/samsung-keypad.c
index 6b9fdf6..44b1ba9 100644
--- a/drivers/input/keyboard/samsung-keypad.c
+++ b/drivers/input/keyboard/samsung-keypad.c
@@ -112,7 +112,7 @@ static bool samsung_keypad_report(struct samsung_keypad *keypad,
struct input_dev *input_dev = keypad->input_dev;
unsigned int changed;
unsigned int pressed;
- unsigned int key_down = 0;
+ bool key_down = false;
unsigned int val;
unsigned int col, row;
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists