summaryrefslogtreecommitdiffstats
path: root/drivers/staging
diff options
context:
space:
mode:
authorJonathan Cameron <jic23@cam.ac.uk>2011-08-12 17:08:53 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-23 13:31:12 -0700
commit4024bc73b1d1d8f82518b67b0996cb7b870dd1d4 (patch)
treee9521ef48b2d977efa28cbe6de89b95c4d3a96ab /drivers/staging
parente05e5f2336a94f127553c947dcfe2ce15f2c5f9a (diff)
downloadlinux-stable-4024bc73b1d1d8f82518b67b0996cb7b870dd1d4.tar.gz
linux-stable-4024bc73b1d1d8f82518b67b0996cb7b870dd1d4.tar.bz2
linux-stable-4024bc73b1d1d8f82518b67b0996cb7b870dd1d4.zip
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: Jonathan Cameron <jic23@cam.ac.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging')
-rw-r--r--drivers/staging/iio/iio.h13
1 files changed, 1 insertions, 12 deletions
diff --git a/drivers/staging/iio/iio.h b/drivers/staging/iio/iio.h
index 42254b49395f..d86a61024052 100644
--- a/drivers/staging/iio/iio.h
+++ b/drivers/staging/iio/iio.h
@@ -276,7 +276,6 @@ struct iio_info {
/**
* struct iio_dev - industrial I/O device
* @id: [INTERN] used to identify device internally
- * @dev_data: [DRIVER] device specific data
* @modes: [DRIVER] operating modes supported by device
* @currentmode: [DRIVER] current operating mode
* @dev: [DRIVER] device structure, should be assigned a parent
@@ -296,7 +295,7 @@ struct iio_info {
**/
struct iio_dev {
int id;
- void *dev_data;
+
int modes;
int currentmode;
struct device dev;
@@ -370,16 +369,6 @@ static inline struct iio_dev *to_iio_dev(struct device *d)
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? */
#define IIO_ALIGN L1_CACHE_BYTES
/**