iio: Drop scan_type from viperboard adc driver
authorPeter Meerwald <pmeerw@pmeerw.net>
Sat, 2 Nov 2013 19:44:00 +0000 (19:44 +0000)
committerJonathan Cameron <jic23@kernel.org>
Sat, 9 Nov 2013 13:51:23 +0000 (13:51 +0000)
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>
drivers/iio/adc/viperboard_adc.c

index 09727a71e9fa1578744c4334ad83679274ff24d2..ee695e50cfa310bab9ae3a45610b3836c857551d 100644 (file)
@@ -42,12 +42,6 @@ struct vprbrd_adc {
        .indexed = 1,                                   \
        .channel = _index,                              \
        .info_mask_separate = BIT(IIO_CHAN_INFO_RAW),   \
-       .scan_index = _index,                           \
-       .scan_type = {                                  \
-               .sign = 'u',                            \
-               .realbits = 8,                          \
-               .storagebits = 8,                       \
-       },                                              \
 }
 
 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,
                mutex_lock(&vb->lock);
 
                admsg->cmd = VPRBRD_ADC_CMD_GET;
-               admsg->chan = chan->scan_index;
+               admsg->chan = chan->channel;
                admsg->val = 0x00;
 
                ret = usb_control_msg(vb->usb_dev,