summaryrefslogtreecommitdiffstats
path: root/drivers/iio/adc/max1363.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-01-31 22:43:00 +0100
committerJonathan Cameron <jic23@kernel.org>2013-02-02 11:07:27 +0100
commitdcb9ca0a25e1ccab9ad6827887c08e2b6b65f38e (patch)
tree8ce2de764b0ff2ea2c5719c441e4ee35cdd42a6d /drivers/iio/adc/max1363.c
parentiio/adc: (max1363) Provide OF node information to iio device (diff)
downloadlinux-dcb9ca0a25e1ccab9ad6827887c08e2b6b65f38e.tar.xz
linux-dcb9ca0a25e1ccab9ad6827887c08e2b6b65f38e.zip
iio/adc: (max1363) Remove duplicate code
Signed-off-by: Guenter Roeck <linux@roeck-us.net> Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Diffstat (limited to 'drivers/iio/adc/max1363.c')
-rw-r--r--drivers/iio/adc/max1363.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/iio/adc/max1363.c b/drivers/iio/adc/max1363.c
index 65eceed7070c..77c123fcd0d0 100644
--- a/drivers/iio/adc/max1363.c
+++ b/drivers/iio/adc/max1363.c
@@ -1572,8 +1572,6 @@ static int max1363_probe(struct i2c_client *client,
indio_dev->num_channels = st->chip_info->num_channels;
indio_dev->info = st->chip_info->info;
indio_dev->modes = INDIO_DIRECT_MODE;
- indio_dev->channels = st->chip_info->channels;
- indio_dev->num_channels = st->chip_info->num_channels;
ret = max1363_initial_setup(st);
if (ret < 0)
goto error_free_available_scan_masks;