* [PATCH] [PATCH] iio: chemical: sgp30: cleanup codestyle warning
@ 2026-07-23 16:18 Adi Nata
0 siblings, 0 replies; only message in thread
From: Adi Nata @ 2026-07-23 16:18 UTC (permalink / raw)
To: jic23, dlechner, nuno.sa, andy, u.kleine-koenig, email,
krzysztof.kozlowski, mazziesaccount, adinata.softwareengineer,
linux-iio, linux-kernel
Cc: linux-kernel-mentees
Reported by checkpatch:
FILE: drivers/iio/chemical/sgp30.c
WARNING: Prefer __packed over __attribute__((__packed__))
+} __attribute__((__packed__));
Signed-off-by: Adi Nata <adinata.softwareengineer@gmail.com>
---
drivers/iio/chemical/sgp30.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/iio/chemical/sgp30.c b/drivers/iio/chemical/sgp30.c
index f10bbebc29e4..c33592a1e0c9 100644
--- a/drivers/iio/chemical/sgp30.c
+++ b/drivers/iio/chemical/sgp30.c
@@ -82,7 +82,7 @@ struct sgp_version {
struct sgp_crc_word {
__be16 value;
u8 crc8;
-} __attribute__((__packed__));
+} __packed;
union sgp_reading {
u8 start;
--
2.47.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-07-23 16:19 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-23 16:18 [PATCH] [PATCH] iio: chemical: sgp30: cleanup codestyle warning Adi Nata
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.