]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: dac ad8801: drop driver remove function
authorDavid Lechner <dlechner@baylibre.com>
Wed, 20 Nov 2024 21:33:30 +0000 (15:33 -0600)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 7 Dec 2024 17:47:57 +0000 (17:47 +0000)
commit276821d1e04cd10db98cabcc532cbfef6bd3e529
treee1f27adab985364f9af80169d53806a6bd96e8fe
parent451bdc1dc9cbadc0bb3567d0fa25e1898452e9fe
iio: dac ad8801: drop driver remove function

Remove driver remove callback in the ad8801 driver.

By making use of devm_iio_device_register(), we no longer need a driver
remove callback. Also since this was the last user of spi_get_drvdata(),
we can drop the call to spi_set_drvdata().

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20241120-iio-regulator-cleanup-round-6-v1-7-d5a5360f7ec3@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad8801.c