Skip to content

Commit

Permalink
Input: goodix - change goodix_i2c_write() len parameter type to int
Browse files Browse the repository at this point in the history
[ Upstream commit 31ae010 ]

Change the type of the goodix_i2c_write() len parameter to from 'unsigned'
to 'int' to avoid bare use of 'unsigned', changing it to 'int' makes
goodix_i2c_write()' prototype consistent with goodix_i2c_read().

Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20210920150643.155872-2-hdegoede@redhat.com
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
jwrdegoede authored and gregkh committed Jul 12, 2022
1 parent 8d1d6b2 commit 1354ceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/input/touchscreen/goodix.c
Expand Up @@ -246,7 +246,7 @@ static int goodix_i2c_read(struct i2c_client *client,
* @len: length of the buffer to write
*/
static int goodix_i2c_write(struct i2c_client *client, u16 reg, const u8 *buf,
unsigned len)
int len)
{
u8 *addr_buf;
struct i2c_msg msg;
Expand Down

0 comments on commit 1354ceb

Please sign in to comment.