summaryrefslogtreecommitdiffstats
path: root/drivers/input/touchscreen/goodix.c
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2021-09-21 06:08:02 +0200
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2021-09-21 07:00:22 +0200
commit31ae0102a34ed863c7d32b10e768036324991679 (patch)
tree37b44e9c8f46e41ec01ee9afdfda8b10a4bd408d /drivers/input/touchscreen/goodix.c
parentInput: tmdc - fix spelling mistake "Millenium" -> "Millennium" (diff)
downloadlinux-31ae0102a34ed863c7d32b10e768036324991679.tar.xz
linux-31ae0102a34ed863c7d32b10e768036324991679.zip
Input: goodix - change goodix_i2c_write() len parameter type to int
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>
Diffstat (limited to 'drivers/input/touchscreen/goodix.c')
-rw-r--r--drivers/input/touchscreen/goodix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index c682b028f0a2..00536064f45e 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -290,7 +290,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;