diff options
author | Alexandru Ardelean <alexandru.ardelean@analog.com> | 2020-11-19 16:18:06 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2020-11-21 15:19:02 +0000 |
commit | d59377023d4a30e0bb0eac38c813224ce8bc61ec (patch) | |
tree | 1ef79cc4495501d3e80c5b3b4de60a9bb7c9dda3 /drivers/iio/accel | |
parent | 9ff2497337088925d1a486479dfd3f80273dc9a1 (diff) | |
download | linux-d59377023d4a30e0bb0eac38c813224ce8bc61ec.tar.bz2 |
iio: accel: adis16209: 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/20201119141806.84827-1-alexandru.ardelean@analog.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/accel')
-rw-r--r-- | drivers/iio/accel/adis16209.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/accel/adis16209.c b/drivers/iio/accel/adis16209.c index 4a841aec6268..6c2d4a967de7 100644 --- a/drivers/iio/accel/adis16209.c +++ b/drivers/iio/accel/adis16209.c @@ -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; |