Tiny whitespace fix to make ad7192.c cleanly pass checkpatch.pl
Subsystems (4)
PATCH 1/1 Tiny whitespace fix to make ad7192.c cleanly pass checkpatch.pl
--- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/ad7192.c +1 -1
@@ -391,7 +391,7 @@ ad7192_show_scale_available(struct device *dev, } static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available, - in_voltage-voltage_scale_available, + in_voltage - voltage_scale_available, S_IRUGO, ad7192_show_scale_available, NULL, 0); static IIO_DEVICE_ATTR(in_voltage_scale_available, S_IRUGO,
Signature · 1 line
2.9.3
Hey.
You are missing Signed-off-by flag.
BR
Crt
Quoted 24 lines · Ico Doornekamp
--- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/iio/adc/ad7192.c +1
-2@@ -391,7 +391,7 @@ ad7192_show_scale_available(struct device *dev, } static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available, - in_voltage-voltage_scale_available, + in_voltage - voltage_scale_available, S_IRUGO, ad7192_show_scale_available, NULL, 0); static IIO_DEVICE_ATTR(in_voltage_scale_available, S_IRUGO, --2.9.3
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 1 line · * On 2016-09-09 15:56:31 +0200, Crt Mori wrote:
You are missing Signed-off-by flag.
Sorry, first time around. Retry:
--- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/iio/adc/ad7192.c +1 -1
@@ -391,7 +391,7 @@ ad7192_show_scale_available(struct device *dev, } static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available, - in_voltage-voltage_scale_available, + in_voltage - voltage_scale_available, S_IRUGO, ad7192_show_scale_available, NULL, 0); static IIO_DEVICE_ATTR(in_voltage_scale_available, S_IRUGO,
Signature · 1 line
2.9.3
Hi,
Thanks for the patch. But this not a correct change, it is a false positive reported by checkpatch.
- Lars
Quoted 18 lines · Ico Doornekamp
--- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/iio/adc/ad7192.c +1
-1@@ -391,7 +391,7 @@ ad7192_show_scale_available(struct device *dev, } static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available, - in_voltage-voltage_scale_available, + in_voltage - voltage_scale_available, S_IRUGO, ad7192_show_scale_available, NULL, 0); static IIO_DEVICE_ATTR(in_voltage_scale_available, S_IRUGO,
Jonathan Cameron
maintainerQuoted 4 lines · Lars-Peter Clausen
Hi,
Thanks for the patch. But this not a correct change, it is a false positive reported by checkpatch.
Just to explain a bit more. Checkpatch is assuming that it is looking at two parameters. It's not. That's a string being passed into the macro. It ultimately forms a file name in sysfs.
Jonathan
p.s. We get patches for this from time to time ;( Unfortunately it's a somewhat obscure case for checkpatch.
Quoted 28 lines
- Lars
Quoted 10 lines · Ico Doornekamp
--- drivers/staging/iio/adc/ad7192.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/iio/adc/ad7192.c +0
-0drivers/staging/iio/adc/ad7192.c ad7192_show_scale_available(struct device *dev, · line 397
Quoted 8 lines
drivers/staging/iio/adc/ad7192.c +1
-1@@ -391,7 +391,7 @@ ad7192_show_scale_available(struct device *dev, } static IIO_DEVICE_ATTR_NAMED(in_v_m_v_scale_available, - in_voltage-voltage_scale_available, + in_voltage - voltage_scale_available, S_IRUGO, ad7192_show_scale_available, NULL, 0); static IIO_DEVICE_ATTR(in_voltage_scale_available, S_IRUGO,--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Quoted 5 lines · * On 2016-09-10 17:39:27 +0200, Jonathan Cameron wrote:
On 09/09/16 14:59, Lars-Peter Clausen wrote:
Just to explain a bit more. Checkpatch is assuming that it is looking at two parameters. It's not. That's a string being passed into the macro. It ultimately forms a file name in sysfs.
Yeah, I figured that out eventually, after submitting the patch. Thanks for explaining, though.
Signature · 2 lines
:wq ^X^Cy^K^X^C^C^C^C