Patch "Input: goodix - change goodix_i2c_write() len parameter type to int" has been added to the 5.15-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    Input: goodix - change goodix_i2c_write() len parameter type to int

to the 5.15-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     input-goodix-change-goodix_i2c_write-len-parameter-t.patch
and it can be found in the queue-5.15 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit bf8bef3bc64d3569f2a27af9ac2a8ca014370de4
Author: Hans de Goede <hdegoede@xxxxxxxxxx>
Date:   Mon Sep 20 21:08:02 2021 -0700

    Input: goodix - change goodix_i2c_write() len parameter type to int
    
    [ Upstream commit 31ae0102a34ed863c7d32b10e768036324991679 ]
    
    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@xxxxxxxxxx>
    Signed-off-by: Hans de Goede <hdegoede@xxxxxxxxxx>
    Link: https://lore.kernel.org/r/20210920150643.155872-2-hdegoede@xxxxxxxxxx
    Signed-off-by: Dmitry Torokhov <dmitry.torokhov@xxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index 5051a1766aac..1eb776abe562 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -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;



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux