lkml.org 
[lkml]   [2015]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Input:mouse:synaptics_i2c - Use bool function return value
Date
The function synaptics_i2c_get_input() has bool return type.
So use bool value flase instead of 0 to return.

Signed-off-by: Shailendra Verma <shailendra.capricorn@gmail.com>
---
drivers/input/mouse/synaptics_i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/mouse/synaptics_i2c.c b/drivers/input/mouse/synaptics_i2c.c
index 2c87a93..ffceedc 100644
--- a/drivers/input/mouse/synaptics_i2c.c
+++ b/drivers/input/mouse/synaptics_i2c.c
@@ -342,7 +342,7 @@ static bool synaptics_i2c_get_input(struct synaptics_i2c *touch)

/* Deal with spontaneous resets and errors */
if (synaptics_i2c_check_error(touch->client))
- return 0;
+ return false;

/* Get Gesture Bit */
data = synaptics_i2c_reg_get(touch->client, DATA_REG0);
--
1.7.9.5


\
 
 \ /
  Last update: 2015-05-25 19:41    [W:0.038 / U:0.364 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site