staging: iio: adc: Add spaces around operator
Subsystems (4)
PATCH 1/1 staging: iio: adc: Add spaces around operator
Issue found by checkpatch.pl
Signed-off-by Katie Dunne <[email protected]>
--- drivers/staging/iio/adc/ad7280a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/adc/ad7280a.c +2 -2
@@ -744,14 +744,14 @@ out: } static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value, - in_voltage-voltage_thresh_low_value, + in_voltage - voltage_thresh_low_value,S_IRUGO |S_IWUSR , ad7280_read_channel_config, ad7280_write_channel_config, AD7280A_CELL_UNDERVOLTAGE); static IIO_DEVICE_ATTR_NAMED(in_thresh_high_value, - in_voltage-voltage_thresh_high_value, + in_voltage - voltage_thresh_high_value,S_IRUGO |S_IWUSR , ad7280_read_channel_config, ad7280_write_channel_config,
Signature · 1 line
2.7.4
Quoted 1 line · Katie Dunne
Issue found by checkpatch.pl
Hi Katie,
This one's a checkpatch error. I'll just cut/paste the response Jonathan gave to the person who sent it last week ;)
"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.
p.s. We get patches for this from time to time ;( Unfortunately it's a somewhat obscure case for checkpatch."
But, if this had been a valid patch, I also would add the feedback to give the driver name in the subject - staging: iio: adc: ad7192:
Thanks,
alisons
Quoted 36 lines
Signed-off-by Katie Dunne <[email protected]>--- drivers/staging/iio/adc/ad7280a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/iio/adc/ad7280a.c +2
-2@@ -744,14 +744,14 @@ out: } static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value, - in_voltage-voltage_thresh_low_value, + in_voltage - voltage_thresh_low_value,S_IRUGO |S_IWUSR , ad7280_read_channel_config, ad7280_write_channel_config, AD7280A_CELL_UNDERVOLTAGE); static IIO_DEVICE_ATTR_NAMED(in_thresh_high_value, - in_voltage-voltage_thresh_high_value, + in_voltage - voltage_thresh_high_value,S_IRUGO |S_IWUSR , ad7280_read_channel_config, ad7280_write_channel_config,Signature · 8 lines
2.7.4 -- 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/20160915164248.GA4812%40katie-Inspiron-5748. For more options, visit https://groups.google.com/d/optout.