diff mbox series

[2/4] iio: frequency: adf4371: drop spi_set_drvdata()

Message ID 20241009-dev-adf4371-minor-improv-v1-2-97f4f22ed941@analog.com (mailing list archive)
State Accepted
Headers show
Series iio: frequecy: adf4371: minor improvements | expand

Commit Message

Nuno Sa via B4 Relay Oct. 9, 2024, 2:16 p.m. UTC
From: Nuno Sa <nuno.sa@analog.com>

spi_set_drvdata() is not needed as there's no spi_get_drvdata() call in
the code.

Signed-off-by: Nuno Sa <nuno.sa@analog.com>
---
 drivers/iio/frequency/adf4371.c | 1 -
 1 file changed, 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/iio/frequency/adf4371.c b/drivers/iio/frequency/adf4371.c
index c8bf37f1679c..eb31f442566c 100644
--- a/drivers/iio/frequency/adf4371.c
+++ b/drivers/iio/frequency/adf4371.c
@@ -561,7 +561,6 @@  static int adf4371_probe(struct spi_device *spi)
 	}
 
 	st = iio_priv(indio_dev);
-	spi_set_drvdata(spi, indio_dev);
 	st->spi = spi;
 	st->regmap = regmap;
 	mutex_init(&st->lock);