Input:mouse:synaptics_i2c - Use bool function return value
Subsystems (2)
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.
Signed-off-by Shailendra Verma <[email protected]>
--- drivers/input/mouse/synaptics_i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/input/mouse/synaptics_i2c.c +1 -1
@@ -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
Dmitry Torokhov
maintainerQuoted 4 lines · Shailendra Verma
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 <[email protected]>
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@@ -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