Skip to contentSkip to conversation

Input:mouse:synaptics_i2c - Use bool function return value

PATCH In review Shailendra Verma 2 participants 2 messages May 25, 2015 – May 26, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Input:mouse:synaptics_i2c - Use bool function return value

The function synaptics_i2c_get_input() has bool return type. So use bool value flase instead of 0 to return.

---
 drivers/input/mouse/synaptics_i2c.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/synaptics_i2c.c +1 -1
index 2c87a93..ffceedc 100644
@@ -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);
Signature · 1 line
1.7.9.5
maintainer
#1 lore raw
Quoted 4 lines · Shailendra Verma

The function synaptics_i2c_get_input() has bool return type. So use bool value flase instead of 0 to return.

Folded all 3 patches together and applied.

Thank you.

Quoted 20 lines
---
 drivers/input/mouse/synaptics_i2c.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/synaptics_i2c.c +1 -1
index 2c87a93..ffceedc 100644
@@ -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);
Signature · 1 line
1.7.9.5
Signature · 1 line
Dmitry