Re: [PATCH 12/15] staging:iio:ad7746: Mark transfer buffer as __be32

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

 



On 11/25/13 12:42, Lars-Peter Clausen wrote:
> Fixes the following warnings from sparse:
> 	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
> 	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
> 	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
> 	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
> 	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
> 	drivers/staging/iio/cdc/ad7746.c:599:25: warning: cast to restricted __be32
> 
> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
Applied to the togreg branch of iio.git

Thanks
> ---
>  drivers/staging/iio/cdc/ad7746.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/staging/iio/cdc/ad7746.c b/drivers/staging/iio/cdc/ad7746.c
> index 862d68d..01e15e2 100644
> --- a/drivers/staging/iio/cdc/ad7746.c
> +++ b/drivers/staging/iio/cdc/ad7746.c
> @@ -567,7 +567,7 @@ static int ad7746_read_raw(struct iio_dev *indio_dev,
>  	u8 regval, reg;
>  
>  	union {
> -		u32 d32;
> +		__be32 d32;
>  		u8 d8[4];
>  	} data;
>  
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-iio" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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