iio: chemical: ams-iaq-core: clean up codestyle warning
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.
Signed-off-by Bruna Bispo <[email protected]>
--- drivers/iio/chemical/ams-iaq-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/iio/chemical/ams-iaq-core.c +1 -1
@@ -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
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.Signed-off-by Bruna Bispo <[email protected]>
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@@ -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;