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

Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Cc: Gene Chen <gene_chen@richtek.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426170251.351957-5-jic23@kernel.org
drivers/iio/adc/mt6360-adc.c

index 6b39a13..07c0e67 100644 (file)
@@ -337,7 +337,6 @@ static int mt6360_adc_probe(struct platform_device *pdev)
        }
 
        indio_dev->name = dev_name(&pdev->dev);
-       indio_dev->dev.parent = &pdev->dev;
        indio_dev->info = &mt6360_adc_iio_info;
        indio_dev->modes = INDIO_DIRECT_MODE;
        indio_dev->channels = mt6360_adc_channels;