All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] usb: serial: ark3116: Fix bare use of 'unsigned' checkpatch warning
@ 2022-06-22 13:17 Kushagra Verma
  2022-06-22 13:23 ` Johan Hovold
  0 siblings, 1 reply; 2+ messages in thread
From: Kushagra Verma @ 2022-06-22 13:17 UTC (permalink / raw)
  To: Johan Hovold, Greg Kroah-Hartman, linux-usb, linux-kernel

Fixes the bare use of 'unsigned' checkpatch warning by changing 'unsigned'
to 'unsigned int'.

Signed-off-by: Kushagra Verma <kushagra765@outlook.com>
---
 drivers/usb/serial/ark3116.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/usb/serial/ark3116.c b/drivers/usb/serial/ark3116.c
index 39eaa7b97c40..6632f4280bbd 100644
--- a/drivers/usb/serial/ark3116.c
+++ b/drivers/usb/serial/ark3116.c
@@ -75,7 +75,7 @@ struct ark3116_private {
 };
 
 static int ark3116_write_reg(struct usb_serial *serial,
-			     unsigned reg, __u8 val)
+			     unsigned int reg, __u8 val)
 {
 	int result;
 	 /* 0xfe 0x40 are magic values taken from original driver */
@@ -90,7 +90,7 @@ static int ark3116_write_reg(struct usb_serial *serial,
 }
 
 static int ark3116_read_reg(struct usb_serial *serial,
-			    unsigned reg, unsigned char *buf)
+			    unsigned int reg, unsigned char *buf)
 {
 	int result;
 	/* 0xfe 0xc0 are magic values taken from original driver */
@@ -398,7 +398,7 @@ static int ark3116_tiocmget(struct tty_struct *tty)
 }
 
 static int ark3116_tiocmset(struct tty_struct *tty,
-			unsigned set, unsigned clr)
+			unsigned int set, unsigned int clr)
 {
 	struct usb_serial_port *port = tty->driver_data;
 	struct ark3116_private *priv = usb_get_serial_port_data(port);
-- 
2.36.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] usb: serial: ark3116: Fix bare use of 'unsigned' checkpatch warning
  2022-06-22 13:17 [PATCH] usb: serial: ark3116: Fix bare use of 'unsigned' checkpatch warning Kushagra Verma
@ 2022-06-22 13:23 ` Johan Hovold
  0 siblings, 0 replies; 2+ messages in thread
From: Johan Hovold @ 2022-06-22 13:23 UTC (permalink / raw)
  To: Kushagra Verma; +Cc: Greg Kroah-Hartman, linux-usb, linux-kernel

On Wed, Jun 22, 2022 at 06:47:50PM +0530, Kushagra Verma wrote:
> Fixes the bare use of 'unsigned' checkpatch warning by changing 'unsigned'
> to 'unsigned int'.

This is not something that needs "fixing" and you should not run
checkpatch.pl on code that's already in the tree unless you're trying to
learn how to create patches by working in drivers/staging.

Johan

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-06-22 13:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-22 13:17 [PATCH] usb: serial: ark3116: Fix bare use of 'unsigned' checkpatch warning Kushagra Verma
2022-06-22 13:23 ` Johan Hovold

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.