Linux IIO development
 help / color / mirror / Atom feed
* [PATCH] iio: chemical: ams-iaq-core: clean up codestyle warning
@ 2024-05-28 14:38 Bruna Bispo
  2024-06-02 11:30 ` Jonathan Cameron
  0 siblings, 1 reply; 2+ messages in thread
From: Bruna Bispo @ 2024-05-28 14:38 UTC (permalink / raw)
  To: jic23; +Cc: lars, linux-iio, Bruna Bispo

This fixes a checkpatch warning by changing the struct attribute from __attribute__((__packed__)) to __packed.

Signed-off-by: Bruna Bispo <blbispo1@gmail.com>
---
 drivers/iio/chemical/ams-iaq-core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/iio/chemical/ams-iaq-core.c b/drivers/iio/chemical/ams-iaq-core.c
index 164facac5..197a205ea 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;
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] iio: chemical: ams-iaq-core: clean up codestyle warning
  2024-05-28 14:38 [PATCH] iio: chemical: ams-iaq-core: clean up codestyle warning Bruna Bispo
@ 2024-06-02 11:30 ` Jonathan Cameron
  0 siblings, 0 replies; 2+ messages in thread
From: Jonathan Cameron @ 2024-06-02 11:30 UTC (permalink / raw)
  To: Bruna Bispo; +Cc: lars, linux-iio

On Tue, 28 May 2024 11:38:16 -0300
Bruna Bispo <blbispo1@gmail.com> wrote:

> This fixes a checkpatch warning by changing the struct attribute from __attribute__((__packed__)) to __packed.
> 
> Signed-off-by: Bruna Bispo <blbispo1@gmail.com>
Applied
> ---
>  drivers/iio/chemical/ams-iaq-core.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/iio/chemical/ams-iaq-core.c b/drivers/iio/chemical/ams-iaq-core.c
> index 164facac5..197a205ea 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;


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-02 11:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-28 14:38 [PATCH] iio: chemical: ams-iaq-core: clean up codestyle warning Bruna Bispo
2024-06-02 11:30 ` Jonathan Cameron

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox