All of lore.kernel.org
 help / color / mirror / Atom feed
From: Hans de Goede <hdegoede@redhat.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	Bastien Nocera <hadess@hadess.net>
Cc: Hans de Goede <hdegoede@redhat.com>, linux-input@vger.kernel.org
Subject: [PATCH 1/7] Input: goodix - Change goodix_i2c_write() len parameter type to int
Date: Wed, 28 Apr 2021 13:46:02 +0200	[thread overview]
Message-ID: <20210428114608.101795-2-hdegoede@redhat.com> (raw)
In-Reply-To: <20210428114608.101795-1-hdegoede@redhat.com>

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().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
---
 drivers/input/touchscreen/goodix.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/input/touchscreen/goodix.c b/drivers/input/touchscreen/goodix.c
index c682b028f0a2..fddbc6c5127d 100644
--- a/drivers/input/touchscreen/goodix.c
+++ b/drivers/input/touchscreen/goodix.c
@@ -289,8 +289,7 @@ static int goodix_i2c_read(struct i2c_client *client,
  * @buf: raw data buffer to write.
  * @len: length of the buffer to write
  */
-static int goodix_i2c_write(struct i2c_client *client, u16 reg, const u8 *buf,
-			    unsigned len)
+static int goodix_i2c_write(struct i2c_client *client, u16 reg, const u8 *buf, int len)
 {
 	u8 *addr_buf;
 	struct i2c_msg msg;
-- 
2.31.1


  reply	other threads:[~2021-04-28 11:46 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-04-28 11:46 [PATCH 0/7] Input: goodix - Add support for controllers without flash Hans de Goede
2021-04-28 11:46 ` Hans de Goede [this message]
2021-04-28 11:46 ` [PATCH 2/7] Input: goodix - Add a goodix.h header file Hans de Goede
2021-04-28 11:46 ` [PATCH 3/7] Input: goodix - Refactor reset handling Hans de Goede
2021-04-28 11:46 ` [PATCH 4/7] Input: goodix - Push error logging up into i2c_read and i2c_write helpers Hans de Goede
2021-04-28 11:46 ` [PATCH 5/7] Input: goodix - Allow specifying the config filename through a "goodix,config-name" device-property Hans de Goede
2021-04-28 11:46 ` [PATCH 6/7] Input: goodix - Add support for controllers without flash Hans de Goede
2021-04-28 11:46 ` [PATCH 7/7] platform/x86: touchscreen_dmi: Add info for the Goodix GT912 panel of TM800A550L tablets Hans de Goede
2021-05-21 10:11   ` Hans de Goede
2021-04-28 12:03 ` [PATCH 0/7] Input: goodix - Add support for controllers without flash Bastien Nocera
2021-04-28 13:18   ` Hans de Goede
2021-07-01 14:29 ` Hans de Goede

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210428114608.101795-2-hdegoede@redhat.com \
    --to=hdegoede@redhat.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=hadess@hadess.net \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.