[PATCH 2/2] iio: accel: adis16203: remove spi_set_drvdata()

Siddharth Menon
2025-03-05T15:59:26Z

The driver does not use spi_get_drvdata() anywhere.

Suggested-by: Marcelo Schmitt <marcelo.schmitt1@gmail.com>
Signed-off-by: Siddharth Menon <simeddon@gmail.com>
---
drivers/staging/iio/accel/adis16203.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/staging/iio/accel/adis16203.c b/drivers/staging/iio/accel/adis16203.c
index ac4b28bcd766..ec21365bb391 100644
--- a/drivers/staging/iio/accel/adis16203.c
+++ b/drivers/staging/iio/accel/adis16203.c
@@ -268,8 +268,6 @@ static int adis16203_probe(struct spi_device *spi)
if (!indio_dev)
return -ENOMEM;
st = iio_priv(indio_dev);
- /* this is only used for removal purposes */
- spi_set_drvdata(spi, indio_dev);

indio_dev->name = spi->dev.driver->name;
indio_dev->channels = adis16203_channels;
--
2.48.1