Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Salah Triki and committed by
Jonathan Cameron
086e4100 d20a8a8e

-2
-2
drivers/staging/iio/adc/ad7816.c
··· 359 359 if (!indio_dev) 360 360 return -ENOMEM; 361 361 chip = iio_priv(indio_dev); 362 - /* this is only used for device removal purposes */ 363 - dev_set_drvdata(&spi_dev->dev, indio_dev); 364 362 365 363 chip->spi_dev = spi_dev; 366 364 for (i = 0; i <= AD7816_CS_MAX; i++)