Skip to contentSkip to conversation

iio: adc: Fix indentation error by adding extra spaces

PATCH In review Anup Sharma 2 participants 2 messages Jan 28, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: adc: Fix indentation error by adding extra spaces

Added extra spaces before statements to fix following indentation warnings reported by checkpatch.pl.

WARNING: Statements should start on a tabstop
+ return 0;

---
 drivers/iio/adc/ad7291.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/ad7291.c +1 -1
index e9129dac762f..fa5807ebe6d2 100644
@@ -179,7 +179,7 @@ static unsigned int ad7291_threshold_reg(const struct iio_chan_spec *chan,
 		offset = AD7291_VOLTAGE_OFFSET;
 		break;
 	default:
-	    return 0;
+		return 0;
 	}
 
 	switch (info) {
Signature · 1 line
2.34.1
maintainer
#1 lore raw

On Sat, 28 Jan 2023 23:18:17 +0530
Anup Sharma <[email protected]> wrote:

Tweaked patch name to be more specific. There are a lot of ADC drivers.
iio: adc: ad7291: Fix...

Quoted 7 lines

Added extra spaces before statements to fix following indentation warnings reported by checkpatch.pl.

WARNING: Statements should start on a tabstop
+ return 0;

Huh. This one has been there over 9 years without anyone noticing. Applied.

Thanks,

Jonathan

Quoted 17 lines
---
 drivers/iio/adc/ad7291.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/adc/ad7291.c +1 -1
index e9129dac762f..fa5807ebe6d2 100644
@@ -179,7 +179,7 @@ static unsigned int ad7291_threshold_reg(const struct iio_chan_spec *chan,
 		offset = AD7291_VOLTAGE_OFFSET;
 		break;
 	default:
-	    return 0;
+		return 0;
 	}
 
 	switch (info) {