iio: adc: ti-ads131e08: Drop duplicate setting of iio_dev.dev.parent
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 26 Apr 2021 17:02:48 +0000 (18:02 +0100)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 17 May 2021 12:49:12 +0000 (13:49 +0100)
Already set to same value in devm_iio_device_alloc()

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Tomislav Denis <tomislav.denis@avl.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426170251.351957-6-jic23@kernel.org
drivers/iio/adc/ti-ads131e08.c

index 764dab087b415c6e55b4d9ab31a32c696d356a07..2c20dbed8adaa895e54b225529736549987adc89 100644 (file)
@@ -830,7 +830,6 @@ static int ads131e08_probe(struct spi_device *spi)
                return ret;
 
        indio_dev->name = st->info->name;
-       indio_dev->dev.parent = &spi->dev;
        indio_dev->info = &ads131e08_iio_info;
        indio_dev->modes = INDIO_DIRECT_MODE;