Skip to contentSkip to conversation

Staging: irda: Prefer 'unsigned int' to bare use of 'unsigned'

PATCH In review Sumit Pundir 2 participants 3 messages Jan 5, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Staging: irda: Prefer 'unsigned int' to bare use of 'unsigned'

This patch fixes the following checkpatch.pl issue at multiple lines:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 drivers/staging/irda/drivers/act200l-sir.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/irda/drivers/act200l-sir.c +4 -4
index e891751..62a02e5 100644
@@ -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,
Signature · 1 line
2.7.4
#1 lore raw

Hi,

Did you read this?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/irda/TODO

Thanks,
Shyam

Quoted 45 lines

This patch fixes the following checkpatch.pl issue at multiple lines:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 drivers/staging/irda/drivers/act200l-sir.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/irda/drivers/act200l-sir.c +4 -5
index e891751..62a02e5 100644
@@ -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

#2 lore raw
Quoted 8 lines · Shyam Saini

Hi,

Did you read this?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/irda/TODO

Thanks,
Shyam

Hi Shyam,

Thanks for the update. Totally forgot to read it.

Thanks,
Sumit

Quoted 55 lines · Shyam Saini

Hi,

Did you read this?
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/staging/irda/TODO

Thanks,
Shyam

Quoted 45 lines

This patch fixes the following checkpatch.pl issue at multiple lines:

WARNING: Prefer 'unsigned int' to bare use of 'unsigned'

---
 drivers/staging/irda/drivers/act200l-sir.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/irda/drivers/act200l-sir.c +4 -5
index e891751..62a02e5 100644
@@ -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