Fix checkpatch warnings
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
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
@@ -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
Re: [PATCH 1/2] iio: light: Annotate Kconfig entry with module name information
Quoted 4 lines · Roberta Dobrescu
This patch fixes the following checkpatch.pl warning:
WARNING: please write a paragraph that describes the config symbol fullySigned-off-by Roberta Dobrescu <[email protected]>
Applied.
Quoted 19 lines
--- drivers/iio/light/Kconfig | 3 +++ 1 file changed, 3 insertions(+)drivers/iio/light/Kconfig +3
-0@@ -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
PATCH 2/2 iio: light: lm3533-als: Remove space before ','
In reply to Roberta DobrescuThis 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
@@ -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
Re: [PATCH 2/2] iio: light: lm3533-als: Remove space before ','
Quoted 4 lines · Roberta Dobrescu
This patch fixes the following checkpatch.pl error:
ERROR: space prohibited before that ',' (ctx:WxE)Signed-off-by Roberta Dobrescu <[email protected]>
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@@ -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