Re: [PATCH 24/24] iio: Free up drvdata for driver usage

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

 



On 05/11/2012 01:58 PM, Lars-Peter Clausen wrote:
> Now that all drivers have been converted to dev_to_iio_dev we do no longer have
> to set the device's drvdata to the iio device pointer. So remove it, this will
> allow drivers to use it for driver specific purposes.
> 

Good series.  Ideally fixup the case of those comments in the early
patches.  Thanks,

Jonathan

> Signed-off-by: Lars-Peter Clausen <lars@xxxxxxxxxx>
Acked-by: Jonathan Cameron <jic23@xxxxxxxxxx>
> 
> ---
> I intend to send this patch with a delay of maybe one release or so, so we don't
> randomly break drivers which are currently in development.
> ---
>  drivers/iio/industrialio-core.c |    1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/iio/industrialio-core.c b/drivers/iio/industrialio-core.c
> index ae3f5ed..f5656a0 100644
> --- a/drivers/iio/industrialio-core.c
> +++ b/drivers/iio/industrialio-core.c
> @@ -753,7 +753,6 @@ struct iio_dev *iio_device_alloc(int sizeof_priv)
>  		dev->dev.type = &iio_dev_type;
>  		dev->dev.bus = &iio_bus_type;
>  		device_initialize(&dev->dev);
> -		dev_set_drvdata(&dev->dev, (void *)dev);
>  		mutex_init(&dev->mlock);
>  		mutex_init(&dev->info_exist_lock);
>  

--
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