Commit 4024bc73 authored by Jonathan Cameron's avatar Jonathan Cameron Committed by Greg Kroah-Hartman

staging:iio: Remove deprecated dev_data from iio_dev.

The equivalent should always be done using iio_alllocate_device
with to create a private area for the driver and then iio_priv
to access it.  There may be other uses for a private data pointer
but right now it just leads driver writers astray.
Signed-off-by: default avatarJonathan Cameron <jic23@cam.ac.uk>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent e05e5f23
...@@ -276,7 +276,6 @@ struct iio_info { ...@@ -276,7 +276,6 @@ struct iio_info {
/** /**
* struct iio_dev - industrial I/O device * struct iio_dev - industrial I/O device
* @id: [INTERN] used to identify device internally * @id: [INTERN] used to identify device internally
* @dev_data: [DRIVER] device specific data
* @modes: [DRIVER] operating modes supported by device * @modes: [DRIVER] operating modes supported by device
* @currentmode: [DRIVER] current operating mode * @currentmode: [DRIVER] current operating mode
* @dev: [DRIVER] device structure, should be assigned a parent * @dev: [DRIVER] device structure, should be assigned a parent
...@@ -296,7 +295,7 @@ struct iio_info { ...@@ -296,7 +295,7 @@ struct iio_info {
**/ **/
struct iio_dev { struct iio_dev {
int id; int id;
void *dev_data;
int modes; int modes;
int currentmode; int currentmode;
struct device dev; struct device dev;
...@@ -370,16 +369,6 @@ static inline struct iio_dev *to_iio_dev(struct device *d) ...@@ -370,16 +369,6 @@ static inline struct iio_dev *to_iio_dev(struct device *d)
return container_of(d, struct iio_dev, dev); return container_of(d, struct iio_dev, dev);
}; };
/**
* iio_dev_get_devdata() - helper function gets device specific data
* @d: the iio_dev associated with the device
**/
static inline void *iio_dev_get_devdata(struct iio_dev *d)
{
return d->dev_data;
}
/* Can we make this smaller? */ /* Can we make this smaller? */
#define IIO_ALIGN L1_CACHE_BYTES #define IIO_ALIGN L1_CACHE_BYTES
/** /**
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment