staging: iio: resolver: ad2s1210: remove spi_set_drvdata()

Since we never call spi_get_drvdata(), we can remove spi_set_drvdata().

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://lore.kernel.org/r/20230929-ad2s1210-mainline-v3-5-fa4364281745@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
David Lechner
2023-09-29 12:23:10 -05:00
committed by Jonathan Cameron
parent 3c1f41d5f3
commit f434eac79b
-2
View File
@@ -659,8 +659,6 @@ static int ad2s1210_probe(struct spi_device *spi)
return -ENOMEM;
st = iio_priv(indio_dev);
spi_set_drvdata(spi, indio_dev);
mutex_init(&st->lock);
st->sdev = spi;
st->hysteresis = true;