Skip to contentSkip to conversation

Fix checkpatch warnings

PATCH Applied Roberta Dobrescu 2 participants 5 messages Dec 30, 2014 – Jan 1, 2015 IIO

lore
Share & tools
lore
#0 lore raw

cover Fix checkpatch warnings

This patchset fixes warnings detected using checkpatch.pl, such as: incomplete config symbol description, prohibited space before ','.

Roberta Dobrescu (2):
iio: light: Annotate Kconfig entry with module name information
iio: light: lm3533-als: Remove space before ','

 drivers/iio/light/Kconfig      | 3 +++
 drivers/iio/light/lm3533-als.c | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 iio: light: Annotate Kconfig entry with module name information

This patch fixes the following checkpatch.pl warning:
WARNING: please write a paragraph that describes the config symbol fully

---
 drivers/iio/light/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
drivers/iio/light/Kconfig +3 -0
index 5bea821..fce4d688 100644
@@ -95,6 +95,9 @@ config HID_SENSOR_ALS
 	  Say yes here to build support for the HID SENSOR
 	  Ambient light sensor.
 
+	  To compile this driver as a module, choose M here: the
+	  module will be called hid-sensor-als.
+
 config HID_SENSOR_PROX
 	depends on HID_SENSOR_HUB
 	select IIO_BUFFER
Signature · 1 line
1.9.1
#3 lore raw

PATCH 2/2 iio: light: lm3533-als: Remove space before ','

In reply to Roberta Dobrescu

This patch fixes the following checkpatch.pl error:
ERROR: space prohibited before that ',' (ctx:WxE)

---
 drivers/iio/light/lm3533-als.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/lm3533-als.c +1 -1
index ae3c71b..076bc46 100644
@@ -657,7 +657,7 @@ static ALS_HYSTERESIS_ATTR_RO(3);
 #define ILLUMINANCE_ATTR_RO(_name) \
 	DEVICE_ATTR(in_illuminance0_##_name, S_IRUGO, show_##_name, NULL)
 #define ILLUMINANCE_ATTR_RW(_name) \
-	DEVICE_ATTR(in_illuminance0_##_name, S_IRUGO | S_IWUSR , \
+	DEVICE_ATTR(in_illuminance0_##_name, S_IRUGO | S_IWUSR, \
 						show_##_name, store_##_name)
 /*
  * ALS Zone threshold-event enable
Signature · 1 line
1.9.1
maintainer Applied
#2 lore raw

Re: [PATCH 1/2] iio: light: Annotate Kconfig entry with module name information

In reply to Roberta Dobrescu
Quoted 4 lines · Roberta Dobrescu

This patch fixes the following checkpatch.pl warning:
WARNING: please write a paragraph that describes the config symbol fully

Applied.

Quoted 19 lines
---
 drivers/iio/light/Kconfig | 3 +++
 1 file changed, 3 insertions(+)
drivers/iio/light/Kconfig +3 -0
index 5bea821..fce4d688 100644
@@ -95,6 +95,9 @@ config HID_SENSOR_ALS
 	  Say yes here to build support for the HID SENSOR
 	  Ambient light sensor.
 
+	  To compile this driver as a module, choose M here: the
+	  module will be called hid-sensor-als.
+
 config HID_SENSOR_PROX
 	depends on HID_SENSOR_HUB
 	select IIO_BUFFER
maintainer Applied
#4 lore raw

Re: [PATCH 2/2] iio: light: lm3533-als: Remove space before ','

In reply to Roberta Dobrescu
Quoted 4 lines · Roberta Dobrescu

This patch fixes the following checkpatch.pl error:
ERROR: space prohibited before that ',' (ctx:WxE)

Applied.

Quoted 18 lines
---
 drivers/iio/light/lm3533-als.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/light/lm3533-als.c +1 -1
index ae3c71b..076bc46 100644
@@ -657,7 +657,7 @@ static ALS_HYSTERESIS_ATTR_RO(3);
 #define ILLUMINANCE_ATTR_RO(_name) \
 	DEVICE_ATTR(in_illuminance0_##_name, S_IRUGO, show_##_name, NULL)
 #define ILLUMINANCE_ATTR_RW(_name) \
-	DEVICE_ATTR(in_illuminance0_##_name, S_IRUGO | S_IWUSR , \
+	DEVICE_ATTR(in_illuminance0_##_name, S_IRUGO | S_IWUSR, \
 						show_##_name, store_##_name)
 /*
  * ALS Zone threshold-event enable