summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruna Bispo <blbispo1@gmail.com>2024-05-28 11:38:16 -0300
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-06-08 14:44:28 +0100
commit9f53b59f4843e7020f1cb0baecd2873f78136d76 (patch)
tree2c032e92770a7bacea9667f6778c19a444415f0b
parentef60f9ca26d33d0f8e1a709771c61d3e96f64559 (diff)
downloadlinux-9f53b59f4843e7020f1cb0baecd2873f78136d76.tar.gz
linux-9f53b59f4843e7020f1cb0baecd2873f78136d76.tar.bz2
linux-9f53b59f4843e7020f1cb0baecd2873f78136d76.zip
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 <blbispo1@gmail.com> Link: https://lore.kernel.org/r/20240528143816.13409-1-blbispo1@gmail.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r--drivers/iio/chemical/ams-iaq-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/chemical/ams-iaq-core.c b/drivers/iio/chemical/ams-iaq-core.c
index 4d605c2b9750..10156d794092 100644
--- a/drivers/iio/chemical/ams-iaq-core.c
+++ b/drivers/iio/chemical/ams-iaq-core.c
@@ -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;