From: Sumit Pundir <pundirsumit11@gmail.com>
To: samuel@sortiz.org
Cc: gregkh@linuxfoundation.org, netdev@vger.kernel.org,
devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org
Subject: [PATCH] Staging: irda: Prefer 'unsigned int' to bare use of 'unsigned'
Date: Fri, 5 Jan 2018 16:02:07 +0530 [thread overview]
Message-ID: <1515148327-10384-1-git-send-email-pundirsumit11@gmail.com> (raw)
This patch fixes the following checkpatch.pl issue at multiple lines:
WARNING: Prefer 'unsigned int' to bare use of 'unsigned'
Signed-off-by: Sumit Pundir <pundirsumit11@gmail.com>
---
drivers/staging/irda/drivers/act200l-sir.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/staging/irda/drivers/act200l-sir.c b/drivers/staging/irda/drivers/act200l-sir.c
index e891751..62a02e5 100644
--- a/drivers/staging/irda/drivers/act200l-sir.c
+++ b/drivers/staging/irda/drivers/act200l-sir.c
@@ -29,7 +29,7 @@
static int act200l_reset(struct sir_dev *dev);
static int act200l_open(struct sir_dev *dev);
static int act200l_close(struct sir_dev *dev);
-static int act200l_change_speed(struct sir_dev *dev, unsigned speed);
+static int act200l_change_speed(struct sir_dev *dev, unsigned int speed);
/* Regsiter 0: Control register #1 */
#define ACT200L_REG0 0x00
@@ -134,7 +134,7 @@ static int act200l_close(struct sir_dev *dev)
* Set the speed for the ACTiSYS ACT-IR200L type dongle.
*
*/
-static int act200l_change_speed(struct sir_dev *dev, unsigned speed)
+static int act200l_change_speed(struct sir_dev *dev, unsigned int speed)
{
u8 control[3];
int ret = 0;
@@ -191,8 +191,8 @@ static int act200l_change_speed(struct sir_dev *dev, unsigned speed)
static int act200l_reset(struct sir_dev *dev)
{
- unsigned state = dev->fsm.substate;
- unsigned delay = 0;
+ unsigned int state = dev->fsm.substate;
+ unsigned int delay = 0;
static const u8 control[9] = {
ACT200L_REG15,
ACT200L_REG13 | ACT200L_SHDW,
--
2.7.4
next reply other threads:[~2018-01-05 10:32 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-01-05 10:32 Sumit Pundir [this message]
2018-01-05 10:44 ` [PATCH] Staging: irda: Prefer 'unsigned int' to bare use of 'unsigned' Shyam Saini
2018-01-05 11:10 ` Sumit Pundir
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=1515148327-10384-1-git-send-email-pundirsumit11@gmail.com \
--to=pundirsumit11@gmail.com \
--cc=devel@driverdev.osuosl.org \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=samuel@sortiz.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).