staging: iio: adc: add space around substraction operation
Subsystems (4)
PATCH 1/1 staging: iio: adc: add space around substraction operation
Fix checkpatch warning to add space around the substraction operation
--- drivers/staging/iio/adc/ad7280a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/staging/iio/adc/ad7280a.c +2 -2
@@ -745,14 +745,14 @@ static irqreturn_t ad7280_event_handler(int irq, void *private) } static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value, - in_voltage-voltage_thresh_low_value, + in_voltage - voltage_thresh_low_value,0644 , 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,0644 , ad7280_read_channel_config, ad7280_write_channel_config,
Signature · 1 line
2.10.0.GIT
On 18 July 2017 06:38:08 BST, Hari Prasath <gehariprasath@gmail=2Ecom> wro= te:
Quoted 27 lines
Fix checkpatch warning to add space around the substraction operation
Signed-off-by Hari Prasath <gehariprasath@gmail=2Ecom>---
drivers/staging/iio/adc/ad7280a=2Ec | 4 ++--1 file changed, 2 insertions(+), 2 deletions(-)drivers/staging/iio/adc/ad7280a=2Ec +0
-0@@ -745,14 +745,14 @@ static irqreturn_t ad7280_event_handler(int irq, void *private) }=20
static IIO_DEVICE_ATTR_NAMED(in_thresh_low_value,drivers/staging/iio/adc/ad7280a=2Ec +1
-1- in_voltage-voltage_thresh_low_value, + in_voltage - voltage_thresh_low_value,0644, ad7280_read_channel_config, ad7280_write_channel_config, AD7280A_CELL_UNDERVOLTAGE);=20
static IIO_DEVICE_ATTR_NAMED(in_thresh_high_value,drivers/staging/iio/adc/ad7280a=2Ec +1
-1- in_voltage-voltage_thresh_high_value, + in_voltage - voltage_thresh_high_value,
Quoted 3 lines
0644, ad7280_read_channel_config, ad7280_write_channel_config,
Check what this code actually does=2E=20
Using checkpatch gives suggestions of where
to look for issues; it is not always right!
This change breaks the userspace ABI=2E
Jonathan
Ps when ever I see a patch involving whitespace and this driver I know I = am going to give roughly
this response having done so perhaps 10 times in the past! =20
--=20
Sent from my Android device with K-9 Mail=2E Please excuse my brevity=2E