Skip to contentSkip to conversation

iio: humidity: htu21: Fix checkpatch tabstop warn

PATCH In review Adi Nata 2 participants 2 messages Aug 2 IIO

lore
Share & tools
lore

Adi Nata

author
#0 lore raw

PATCH 1/1 iio: humidity: htu21: Fix checkpatch tabstop warn

Checkpatch warning:

WARNING:TABSTOP: Statements should start on a tabstop
+ }

WARNING:TABSTOP: Statements should start on a tabstop
+ }

---
 drivers/iio/humidity/htu21.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iio/humidity/htu21.c +3 -3
index a9dbf08b4f1a..908661c64eb9 100644
@@ -105,12 +105,12 @@ static const struct iio_chan_spec htu21_channels[] = {
 		.type = IIO_TEMP,
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_PROCESSED),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
-	 },
+	},
 	{
 		.type = IIO_HUMIDITYRELATIVE,
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_PROCESSED),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
-	 }
+	}
 };
 
 /*
@@ -122,7 +122,7 @@ static const struct iio_chan_spec ms8607_channels[] = {
 		.type = IIO_HUMIDITYRELATIVE,
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_PROCESSED),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
-	 }
+	}
 };
 
 static ssize_t htu21_show_battery_low(struct device *dev,
Signature · 1 line
2.47.3
maintainer
#1 lore raw
Quoted 7 lines · On Sun, 2 Aug 2026 09:33:31 +0800 Adi Nata…

Checkpatch warning:

WARNING:TABSTOP: Statements should start on a tabstop
+ }

WARNING:TABSTOP: Statements should start on a tabstop
+ }

That's an amusingly uninformative set of warnings. I'm guessing you cropped out the bit that says 'where' those are?

Anyhow, I'd not bother with what checkpatch printed for this. Instead just say what the change is and that checkpatch suggested it.

Thanks

Jonathan

Quoted 34 lines
---
 drivers/iio/humidity/htu21.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/iio/humidity/htu21.c +3 -3
index a9dbf08b4f1a..908661c64eb9 100644
@@ -105,12 +105,12 @@ static const struct iio_chan_spec htu21_channels[] = {
 		.type = IIO_TEMP,
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_PROCESSED),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
-	 },
+	},
 	{
 		.type = IIO_HUMIDITYRELATIVE,
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_PROCESSED),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
-	 }
+	}
 };
 
 /*
@@ -122,7 +122,7 @@ static const struct iio_chan_spec ms8607_channels[] = {
 		.type = IIO_HUMIDITYRELATIVE,
 		.info_mask_shared_by_type = BIT(IIO_CHAN_INFO_PROCESSED),
 		.info_mask_shared_by_all = BIT(IIO_CHAN_INFO_SAMP_FREQ),
-	 }
+	}
 };
 
 static ssize_t htu21_show_battery_low(struct device *dev,