iio: chemical: ams-iaq-core: clean up codestyle warning
authorBruna Bispo <blbispo1@gmail.com>
Tue, 28 May 2024 14:38:16 +0000 (11:38 -0300)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 8 Jun 2024 13:44:28 +0000 (14:44 +0100)
This fixes a checkpatch warning by changing the struct attribute from __attribute__((__packed__)) to __packed.

Signed-off-by: Bruna Bispo <blbispo1@gmail.com>
Link: https://lore.kernel.org/r/20240528143816.13409-1-blbispo1@gmail.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/chemical/ams-iaq-core.c

index 4d605c2..10156d7 100644 (file)
@@ -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;