]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: adc: ti-ads8688: drop ads8688_remove()
authorDavid Lechner <dlechner@baylibre.com>
Fri, 21 Jun 2024 22:11:56 +0000 (17:11 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Tue, 25 Jun 2024 20:04:51 +0000 (21:04 +0100)
commita4a9fc32f8156c7e1a9d6dddd20f19ca6acab452
treebb69bae9bb11460e98555d68a40e8845ce27e747
parent2867ccf4a253fe8ac54f01907f896591335c52b4
iio: adc: ti-ads8688: drop ads8688_remove()

By using a few devm_ functions, we can simplify the driver and remove
the ads8688_remove() function.

spi_set_drvdata() is removed since there are no more callers of
spi_get_drvdata().

Also use dev_err_probe() to simplify error return.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20240621-iio-regulator-refactor-round-2-v1-9-49e50cd0b99a@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/adc/ti-ads8688.c