mirror of
https://github.com/torvalds/linux.git
synced 2026-06-05 04:56:13 +02:00
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>
This commit is contained in:
parent
f1a5d7795f
commit
17f3d6cef3
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user