diff options
author | David Lechner <dlechner@baylibre.com> | 2023-09-29 20:23:10 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2023-09-30 17:38:12 +0300 |
commit | f434eac79bee6e44d7d46113391e55d9157cbc65 (patch) | |
tree | b58ba333ea2329584fbc9bd0ef2c957f836a0195 /drivers | |
parent | 3c1f41d5f320a001507257ca3504716e8f8bc00c (diff) | |
download | linux-f434eac79bee6e44d7d46113391e55d9157cbc65.tar.xz |
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>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/staging/iio/resolver/ad2s1210.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/staging/iio/resolver/ad2s1210.c b/drivers/staging/iio/resolver/ad2s1210.c index b5e071d7c5fd..28015322f562 100644 --- a/drivers/staging/iio/resolver/ad2s1210.c +++ b/drivers/staging/iio/resolver/ad2s1210.c @@ -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; |