[PATCH] staging: iio: adis16203: Remove unneeded spi_set_drvdata()

Saalim Quadri
2025-03-03T18:05:30Z

* Since we are making use of devm_iio_device_register(), we no longer
need this nor do we have any spi_get_drvdata() in the driver.

Signed-off-by: Saalim Quadri <danascape@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 c1c73308800c..3faf3c61046a 100644
--- a/drivers/staging/iio/accel/adis16203.c
+++ b/drivers/staging/iio/accel/adis16203.c
@@ -267,8 +267,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.34.1