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

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

 



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.

Signed-off-by: Lars-Peter Clausen <lars@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);
 
-- 
1.7.10

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