Skip to contentSkip to conversation

iio: chemical: ams-iaq-core: clean up codestyle warning

PATCH Applied Bruna Bispo 2 participants 2 messages May 28, 2024 – Jun 2, 2024 IIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 iio: chemical: ams-iaq-core: clean up codestyle warning

This fixes a checkpatch warning by changing the struct attribute from __attribute__((__packed__)) to __packed.

---
 drivers/iio/chemical/ams-iaq-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/chemical/ams-iaq-core.c +1 -1
index 164facac5..197a205ea 100644
@@ -24,7 +24,7 @@ struct ams_iaqcore_reading {
 	u8 status;
 	__be32 resistance;
 	__be16 voc_ppb;
-} __attribute__((__packed__));
+} __packed;
 
 struct ams_iaqcore_data {
 	struct i2c_client *client;
Signature · 1 line
2.34.1
maintainer Applied
#1 lore raw
Quoted 3 lines · On Tue, 28 May 2024 11:38:16 -0300 Bruna Bispo <[email protected]> wrote:

This fixes a checkpatch warning by changing the struct attribute from __attribute__((__packed__)) to __packed.

Applied

Quoted 17 lines
---
 drivers/iio/chemical/ams-iaq-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/chemical/ams-iaq-core.c +1 -1
index 164facac5..197a205ea 100644
@@ -24,7 +24,7 @@ struct ams_iaqcore_reading {
 	u8 status;
 	__be32 resistance;
 	__be16 voc_ppb;
-} __attribute__((__packed__));
+} __packed;
 
 struct ams_iaqcore_data {
 	struct i2c_client *client;