Skip to content

Commit

Permalink
Input: raydium_i2c_ts - use true and false for boolean values
Browse files Browse the repository at this point in the history
Return statements in functions returning bool should use true or false
instead of an integer value.

This code was detected with the help of Coccinelle.

Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Gustavo A. R. Silva authored and Dmitry Torokhov committed Aug 8, 2018
1 parent 6078091 commit 6cad4e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/input/touchscreen/raydium_i2c_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ static bool raydium_i2c_boot_trigger(struct i2c_client *client)
}
}

return 0;
return false;
}

static bool raydium_i2c_fw_trigger(struct i2c_client *client)
Expand All @@ -492,7 +492,7 @@ static bool raydium_i2c_fw_trigger(struct i2c_client *client)
}
}

return 0;
return false;
}

static int raydium_i2c_check_path(struct i2c_client *client)
Expand Down

0 comments on commit 6cad4e2

Please sign in to comment.