Re: [PATCH] iio: make iio_device_get_drvdata take a const struct iio_dev *.

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

 



Hello Jonathan,

thanks a lot, but I'm currently not able to find this patch in iio git repository, neither in testing or fixes-togreg branches.

Is there something I am missing or I just have to wait more ?

Thanks,
JB


From: linux-iio-owner@xxxxxxxxxxxxxxx <linux-iio-owner@xxxxxxxxxxxxxxx> on behalf of Jonathan Cameron <jic23@xxxxxxxxxx>
Sent: Saturday, June 6, 2020 16:24
To: Jean-Baptiste Maneyrol <JManeyrol@xxxxxxxxxxxxxx>
Cc: linux-iio@xxxxxxxxxxxxxxx <linux-iio@xxxxxxxxxxxxxxx>; Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
Subject: Re: [PATCH] iio: make iio_device_get_drvdata take a const struct iio_dev *. 
 
 CAUTION: This email originated from outside of the organization. Please make sure the sender is who they say they are and do not click links or open attachments unless you recognize the sender and know the content is safe.

On Tue, 2 Jun 2020 07:39:52 +0000
Jean-Baptiste Maneyrol <JManeyrol@xxxxxxxxxxxxxx> wrote:

> Hi Jonathan,
> 
> simple and perfect.
> 
> Thanks,
> JB
> 
> Reviewed-by: Jean-Baptiste Maneyrol <jmaneyrol@xxxxxxxxxxxxxx>

Applied.


Thanks,

Jonathan

> 
> ________________________________
> From: jic23@xxxxxxxxxx <jic23@xxxxxxxxxx>
> Sent: Thursday, May 21, 2020 19:53
> To: linux-iio@xxxxxxxxxxxxxxx <linux-iio@xxxxxxxxxxxxxxx>
> Cc: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>; Jean-Baptiste Maneyrol <JManeyrol@xxxxxxxxxxxxxx>
> Subject: [PATCH] iio: make iio_device_get_drvdata take a const struct iio_dev *.
> 
>  CAUTION: This email originated from outside of the organization. Please make sure the sender is who they say they are and do not click links or open attachments unless you recognize the sender and know the content is safe.
> 
> From: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> 
> As this just calls dev_get_drvdata underneath which is happy with
> a const struct device * we should change and avoid potentially
> casting away a const in order to then put it back again.
> 
> Signed-off-by: Jonathan Cameron <Jonathan.Cameron@xxxxxxxxxx>
> Cc: Jean-Baptiste Maneyrol <JManeyrol@xxxxxxxxxxxxxx>
> ---
>  include/linux/iio/iio.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/include/linux/iio/iio.h b/include/linux/iio/iio.h
> index a1be82e74c93..e846a0a7001e 100644
> --- a/include/linux/iio/iio.h
> +++ b/include/linux/iio/iio.h
> @@ -669,7 +669,7 @@ static inline void iio_device_set_drvdata(struct iio_dev *indio_dev, void *data)
>   *
>   * Returns the data previously set with iio_device_set_drvdata()
>   */
> -static inline void *iio_device_get_drvdata(struct iio_dev *indio_dev)
> +static inline void *iio_device_get_drvdata(const struct iio_dev *indio_dev)
>  {
>          return dev_get_drvdata(&indio_dev->dev);
>  }
> --
> 2.26.2
> 




[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