mirror of
https://github.com/torvalds/linux.git
synced 2024-11-20 11:01:38 +00:00
staging:iio:adc:ad799x clear out last few uses of iio_dev->dev_data.
Signed-off-by: Jonathan Cameron <jic23@cam.ac.uk> Acked-by: Michael Hennerich <michael.hennerich@analog.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
f490f42bdf
commit
d8aea29b62
@ -143,7 +143,7 @@ static int ad799x_read_raw(struct iio_dev *dev_info,
|
||||
long m)
|
||||
{
|
||||
int ret;
|
||||
struct ad799x_state *st = dev_info->dev_data;
|
||||
struct ad799x_state *st = iio_priv(dev_info);
|
||||
unsigned int scale_uv;
|
||||
|
||||
switch (m) {
|
||||
@ -176,7 +176,7 @@ static ssize_t ad799x_read_frequency(struct device *dev,
|
||||
char *buf)
|
||||
{
|
||||
struct iio_dev *dev_info = dev_get_drvdata(dev);
|
||||
struct ad799x_state *st = iio_dev_get_devdata(dev_info);
|
||||
struct ad799x_state *st = iio_priv(dev_info);
|
||||
|
||||
int ret, len = 0;
|
||||
u8 val;
|
||||
@ -221,7 +221,7 @@ static ssize_t ad799x_write_frequency(struct device *dev,
|
||||
size_t len)
|
||||
{
|
||||
struct iio_dev *dev_info = dev_get_drvdata(dev);
|
||||
struct ad799x_state *st = iio_dev_get_devdata(dev_info);
|
||||
struct ad799x_state *st = iio_priv(dev_info);
|
||||
|
||||
long val;
|
||||
int ret;
|
||||
@ -281,7 +281,7 @@ static ssize_t ad799x_read_channel_config(struct device *dev,
|
||||
char *buf)
|
||||
{
|
||||
struct iio_dev *dev_info = dev_get_drvdata(dev);
|
||||
struct ad799x_state *st = iio_dev_get_devdata(dev_info);
|
||||
struct ad799x_state *st = iio_priv(dev_info);
|
||||
struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
|
||||
|
||||
int ret;
|
||||
@ -299,7 +299,7 @@ static ssize_t ad799x_write_channel_config(struct device *dev,
|
||||
size_t len)
|
||||
{
|
||||
struct iio_dev *dev_info = dev_get_drvdata(dev);
|
||||
struct ad799x_state *st = iio_dev_get_devdata(dev_info);
|
||||
struct ad799x_state *st = iio_priv(dev_info);
|
||||
struct iio_dev_attr *this_attr = to_iio_dev_attr(attr);
|
||||
|
||||
long val;
|
||||
@ -319,7 +319,7 @@ static ssize_t ad799x_write_channel_config(struct device *dev,
|
||||
static irqreturn_t ad799x_event_handler(int irq, void *private)
|
||||
{
|
||||
struct iio_dev *indio_dev = private;
|
||||
struct ad799x_state *st = iio_dev_get_devdata(private);
|
||||
struct ad799x_state *st = iio_priv(private);
|
||||
u8 status;
|
||||
int i, ret;
|
||||
|
||||
@ -686,7 +686,6 @@ static int __devinit ad799x_probe(struct i2c_client *client,
|
||||
indio_dev->name = id->name;
|
||||
indio_dev->info = st->chip_info->info;
|
||||
indio_dev->name = id->name;
|
||||
indio_dev->dev_data = (void *)(st);
|
||||
|
||||
indio_dev->modes = INDIO_DIRECT_MODE;
|
||||
indio_dev->channels = st->chip_info->channel;
|
||||
|
@ -72,7 +72,7 @@ error_ret:
|
||||
static int ad799x_ring_preenable(struct iio_dev *indio_dev)
|
||||
{
|
||||
struct iio_ring_buffer *ring = indio_dev->ring;
|
||||
struct ad799x_state *st = iio_dev_get_devdata(indio_dev);
|
||||
struct ad799x_state *st = iio_priv(indio_dev);
|
||||
|
||||
/*
|
||||
* Need to figure out the current mode based upon the requested
|
||||
@ -109,7 +109,7 @@ static irqreturn_t ad799x_trigger_handler(int irq, void *p)
|
||||
{
|
||||
struct iio_poll_func *pf = p;
|
||||
struct iio_dev *indio_dev = pf->private_data;
|
||||
struct ad799x_state *st = iio_dev_get_devdata(indio_dev);
|
||||
struct ad799x_state *st = iio_priv(indio_dev);
|
||||
struct iio_ring_buffer *ring = indio_dev->ring;
|
||||
s64 time_ns;
|
||||
__u8 *rxbuf;
|
||||
|
Loading…
Reference in New Issue
Block a user