summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorNuno Sa <nuno.sa@analog.com>2024-10-09 16:16:44 +0200
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-10-10 19:12:42 +0100
commit17f3d6cef3b7553b8b67ac7a73100fca2d8284cf (patch)
tree54e0c3f39bac89fffa9d4245ca8ff9c286ef0bca /drivers
parentf1a5d7795fb0dea2ce547d8a5edbc7f595795974 (diff)
iio: frequency: adf4371: drop spi_set_drvdata()
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> Link: https://patch.msgid.link/20241009-dev-adf4371-minor-improv-v1-2-97f4f22ed941@analog.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/iio/frequency/adf4371.c1
1 files changed, 0 insertions, 1 deletions
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);