提交 dcb9ca0a 编写于 作者: G Guenter Roeck 提交者: Jonathan Cameron

iio/adc: (max1363) Remove duplicate code

Signed-off-by: NGuenter Roeck <linux@roeck-us.net>
Signed-off-by: NJonathan Cameron <jic23@kernel.org>
上级 315ce4b8
...@@ -1572,8 +1572,6 @@ static int max1363_probe(struct i2c_client *client, ...@@ -1572,8 +1572,6 @@ static int max1363_probe(struct i2c_client *client,
indio_dev->num_channels = st->chip_info->num_channels; indio_dev->num_channels = st->chip_info->num_channels;
indio_dev->info = st->chip_info->info; indio_dev->info = st->chip_info->info;
indio_dev->modes = INDIO_DIRECT_MODE; 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); ret = max1363_initial_setup(st);
if (ret < 0) if (ret < 0)
goto error_free_available_scan_masks; goto error_free_available_scan_masks;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册