iio: humidity: hdc2010: Drop duplicate setting of iio_dev.dev.parent
authorJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 26 Apr 2021 17:02:49 +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: Eugene Zaikonnikov <ez@norphonic.com>
Reviewed-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Link: https://lore.kernel.org/r/20210426170251.351957-7-jic23@kernel.org
drivers/iio/humidity/hdc2010.c

index 83f5b9f..1381df4 100644 (file)
@@ -272,7 +272,6 @@ static int hdc2010_probe(struct i2c_client *client,
        data->client = client;
        mutex_init(&data->lock);
 
-       indio_dev->dev.parent = &client->dev;
        /*
         * As DEVICE ID register does not differentiate between
         * HDC2010 and HDC2080, we have the name hardcoded