iio: accel: adis16209: remove unneeded spi_set_drvdata()
authorAlexandru Ardelean <alexandru.ardelean@analog.com>
Thu, 19 Nov 2020 14:18:06 +0000 (16:18 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 21 Nov 2020 15:19:02 +0000 (15:19 +0000)
There is no matching spi_get_drvdata() in the driver. This looks like a
left-over from before the driver was converted to device-managed functions.

Signed-off-by: Alexandru Ardelean <alexandru.ardelean@analog.com>
Link: https://lore.kernel.org/r/20201119141806.84827-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/accel/adis16209.c

index 4a841ae..6c2d4a9 100644 (file)
@@ -279,7 +279,6 @@ static int adis16209_probe(struct spi_device *spi)
                return -ENOMEM;
 
        st = iio_priv(indio_dev);
-       spi_set_drvdata(spi, indio_dev);
 
        indio_dev->name = spi->dev.driver->name;
        indio_dev->info = &adis16209_info;