Re: [PATCH] iio: chemical: ams-iaq-core: clean up codestyle warning

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

> This fixes a checkpatch warning by changing the struct attribute from __attribute__((__packed__)) to __packed.
> 
> Signed-off-by: Bruna Bispo <blbispo1@xxxxxxxxx>
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;





[Index of Archives]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Input]     [Linux Kernel]     [Linux SCSI]     [X.org]

  Powered by Linux