diff options
author | 2020-11-19 16:17:29 +0200 | |
---|---|---|
committer | 2020-11-21 15:16:46 +0000 | |
commit | 9ff2497337088925d1a486479dfd3f80273dc9a1 (patch) | |
tree | f740057bb10f100d09d24fa64dead10446bfaf8c | |
parent | iio: adc: ad7292: remove unneeded spi_set_drvdata() (diff) | |
download | linux-9ff2497337088925d1a486479dfd3f80273dc9a1.tar.gz linux-9ff2497337088925d1a486479dfd3f80273dc9a1.tar.bz2 linux-9ff2497337088925d1a486479dfd3f80273dc9a1.zip |
iio: accel: adis16201: remove unneeded spi_set_drvdata()
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/20201119141729.84185-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
-rw-r--r-- | drivers/iio/accel/adis16201.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/accel/adis16201.c b/drivers/iio/accel/adis16201.c index f955cccb3e77..3633a4e302c6 100644 --- a/drivers/iio/accel/adis16201.c +++ b/drivers/iio/accel/adis16201.c @@ -268,7 +268,6 @@ static int adis16201_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 = &adis16201_info; |