mirror of
https://github.com/torvalds/linux.git
synced 2026-01-12 00:42:35 +08:00
staging: iio: adc: ad7816: Drop unnecessary dev_set_drvdata() call
Remove the call to `dev_set_drvdata()` and the associated comment since private data is never read. Signed-off-by: Salah Triki <salah.triki@gmail.com> Reviewed-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/aKSRpTuwA0P-ZaUS@pc Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
committed by
Jonathan Cameron
parent
d20a8a8ecd
commit
086e410063
@@ -359,8 +359,6 @@ static int ad7816_probe(struct spi_device *spi_dev)
|
||||
if (!indio_dev)
|
||||
return -ENOMEM;
|
||||
chip = iio_priv(indio_dev);
|
||||
/* this is only used for device removal purposes */
|
||||
dev_set_drvdata(&spi_dev->dev, indio_dev);
|
||||
|
||||
chip->spi_dev = spi_dev;
|
||||
for (i = 0; i <= AD7816_CS_MAX; i++)
|
||||
|
||||
Reference in New Issue
Block a user