Skip to contentSkip to conversation

staging: media: bcm2048: Replace 'unsigned' with 'unsigned int'

PATCH In review Megha Agarwal 3 participants 4 messages Sep 29, 2016 – Oct 4, 2016

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

PATCH 1/1 staging: media: bcm2048: Replace 'unsigned' with 'unsigned int'

This is a patch to the radio-bcm2048.c file that fixes up a
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool

---
 drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/bcm2048/radio-bcm2048.c +1 -1
index ea15cc6..f6f847b 100644
@@ -2022,7 +2022,7 @@ static ssize_t bcm2048_##prop##_read(struct device *dev,		\
 	return count;							\
 }
 
-DEFINE_SYSFS_PROPERTY(power_state, unsigned, int, "%u", 0)
+DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(mute, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(audio_route, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(dac_output, unsigned, int, "%u", 0)
Signature · 1 line
1.9.1
maintainer
#1 lore raw
Quoted 14 lines · Megha Agarwal

This is a patch to the radio-bcm2048.c file that fixes up a
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool

---
 drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/bcm2048/radio-bcm2048.c +0 -0
index ea15cc6..f6f847b 100644

drivers/staging/media/bcm2048/radio-bcm2048.c static ssize_t bcm2048_##prop##_read(struct device *dev, \ · line 2028

Quoted 8 lines
drivers/staging/media/bcm2048/radio-bcm2048.c +1 -1
@@ -2022,7 +2022,7 @@ static ssize_t bcm2048_##prop##_read(struct device *dev,		\
 	return count;							\
 }
 
-DEFINE_SYSFS_PROPERTY(power_state, unsigned, int, "%u", 0)
+DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(mute, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(audio_route, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(dac_output, unsigned, int, "%u", 0)

Why only 1? And are you sure this is correct? Did you build it?

greg k-h

#2 lore raw
Quoted 26 lines · Greg KH
Quoted 14 lines · Megha Agarwal

This is a patch to the radio-bcm2048.c file that fixes up a
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool

---
 drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/bcm2048/radio-bcm2048.c +0 -0
index ea15cc6..f6f847b 100644

drivers/staging/media/bcm2048/radio-bcm2048.c static ssize_t bcm2048_##prop##_read(struct device *dev, \ · line 2028

Quoted 8 lines
drivers/staging/media/bcm2048/radio-bcm2048.c +1 -1
@@ -2022,7 +2022,7 @@ static ssize_t bcm2048_##prop##_read(struct device *dev,		\
 	return count;							\
 }
 
-DEFINE_SYSFS_PROPERTY(power_state, unsigned, int, "%u", 0)
+DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(mute, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(audio_route, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(dac_output, unsigned, int, "%u", 0)

Why only 1? And are you sure this is correct? Did you build it?

Quoted 1 line

greg k-h

I was not sure if I could send the changes in all the lines in one patch, hence sent the single change.

I am revising the patch as this change is giving an error on build : two or more data types in declaration specifiers.

megha

#3 lore raw
Quoted 27 lines · Megha Agarwal
Quoted 26 lines · Greg KH
Quoted 14 lines · Megha Agarwal

This is a patch to the radio-bcm2048.c file that fixes up a
WARNING: Prefer 'unsigned int' to bare use of 'unsigned' found by the checkpatch.pl tool

---
 drivers/staging/media/bcm2048/radio-bcm2048.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/media/bcm2048/radio-bcm2048.c +0 -0
index ea15cc6..f6f847b 100644

drivers/staging/media/bcm2048/radio-bcm2048.c static ssize_t bcm2048_##prop##_read(struct device *dev, \ · line 2028

Quoted 8 lines
drivers/staging/media/bcm2048/radio-bcm2048.c +1 -1
@@ -2022,7 +2022,7 @@ static ssize_t bcm2048_##prop##_read(struct device *dev,		\
 	return count;							\
 }
 
-DEFINE_SYSFS_PROPERTY(power_state, unsigned, int, "%u", 0)
+DEFINE_SYSFS_PROPERTY(power_state, unsigned int, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(mute, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(audio_route, unsigned, int, "%u", 0)
 DEFINE_SYSFS_PROPERTY(dac_output, unsigned, int, "%u", 0)

Why only 1? And are you sure this is correct? Did you build it?

Quoted 6 lines
Quoted 1 line

greg k-h

I was not sure if I could send the changes in all the lines in one patch, hence sent the single change.

I am revising the patch as this change is giving an error on build : two or more data types in declaration specifiers.

Exactly. I don't think there is anything to revise. The change is just not appropriate in this case, based on how the macro is designed.

julia

Quoted 10 lines

megha

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20161004045631.GA4456%40megha-HP-15-Notebook-PC.
For more options, visit https://groups.google.com/d/optout.