From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: linux-iio@vger.kernel.org
Cc: "Jonathan Cameron" <jic23@kernel.org>,
"David Lechner" <dlechner@baylibre.com>,
"Nuno Sá" <nuno.sa@analog.com>,
"Andy Shevchenko" <andy@kernel.org>,
"Andy Shevchenko" <andriy.shevchenko@linux.intel.com>
Subject: [PATCH v2 3/3] iio: chemical: sgp30: Use __packed shortcut for compiler attribute
Date: Mon, 30 Nov 2026 18:01:13 +0100 [thread overview]
Message-ID: <20261130170400.3629799-4-andriy.shevchenko@linux.intel.com> (raw)
In-Reply-To: <20261130170400.3629799-1-andriy.shevchenko@linux.intel.com>
Use __packed shortcut for __packed__ compiler attribute as it's
a common style in IIO subsystem and Linux kernel in general.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.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 379c1c4af8d8..2b60a033e219 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.50.1
next prev parent reply other threads:[~2026-11-30 17:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-30 17:01 [PATCH v2 0/3] iio: Unify __packed use and fix a hidden regression Andy Shevchenko
2026-11-30 17:01 ` [PATCH v2 1/3] iio: common: ssp_sensors: Use __packed instead of __packed__ Andy Shevchenko
2026-11-30 17:01 ` [PATCH v2 2/3] iio: chemical: ccs811: Use __packed shortcut for compiler attribute Andy Shevchenko
2026-11-30 17:01 ` Andy Shevchenko [this message]
2026-11-30 23:23 ` [PATCH v2 0/3] iio: Unify __packed use and fix a hidden regression Jonathan Cameron
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130170400.3629799-4-andriy.shevchenko@linux.intel.com \
--to=andriy.shevchenko@linux.intel.com \
--cc=andy@kernel.org \
--cc=dlechner@baylibre.com \
--cc=jic23@kernel.org \
--cc=linux-iio@vger.kernel.org \
--cc=nuno.sa@analog.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.