diff options
author | Peter Meerwald <pmeerw@pmeerw.net> | 2013-11-02 15:44:00 -0400 |
---|---|---|
committer | Jonathan Cameron <jic23@kernel.org> | 2013-11-09 08:51:23 -0500 |
commit | f227c1325948859c63678c6f9f448d72a8208d8a (patch) | |
tree | 5d234bf61e0cbf377a9145df04c4269af4fcb050 | |
parent | f87ee1bd888e0f6b9179c569b60d2c92c0000bc8 (diff) |
iio: Drop scan_type from viperboard adc driver
the driver does not support buffering, hence scan_type is not needed
Signed-off-by: Peter Meerwald <pmeerw@pmeerw.net>
Cc: Lars Poeschel <poeschel@lemonage.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
-rw-r--r-- | drivers/iio/adc/viperboard_adc.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/drivers/iio/adc/viperboard_adc.c b/drivers/iio/adc/viperboard_adc.c index 09727a71e9fa..ee695e50cfa3 100644 --- a/drivers/iio/adc/viperboard_adc.c +++ b/drivers/iio/adc/viperboard_adc.c | |||
@@ -42,12 +42,6 @@ struct vprbrd_adc { | |||
42 | .indexed = 1, \ | 42 | .indexed = 1, \ |
43 | .channel = _index, \ | 43 | .channel = _index, \ |
44 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ | 44 | .info_mask_separate = BIT(IIO_CHAN_INFO_RAW), \ |
45 | .scan_index = _index, \ | ||
46 | .scan_type = { \ | ||
47 | .sign = 'u', \ | ||
48 | .realbits = 8, \ | ||
49 | .storagebits = 8, \ | ||
50 | }, \ | ||
51 | } | 45 | } |
52 | 46 | ||
53 | static struct iio_chan_spec const vprbrd_adc_iio_channels[] = { | 47 | static struct iio_chan_spec const vprbrd_adc_iio_channels[] = { |
@@ -73,7 +67,7 @@ static int vprbrd_iio_read_raw(struct iio_dev *iio_dev, | |||
73 | mutex_lock(&vb->lock); | 67 | mutex_lock(&vb->lock); |
74 | 68 | ||
75 | admsg->cmd = VPRBRD_ADC_CMD_GET; | 69 | admsg->cmd = VPRBRD_ADC_CMD_GET; |
76 | admsg->chan = chan->scan_index; | 70 | admsg->chan = chan->channel; |
77 | admsg->val = 0x00; | 71 | admsg->val = 0x00; |
78 | 72 | ||
79 | ret = usb_control_msg(vb->usb_dev, | 73 | ret = usb_control_msg(vb->usb_dev, |