]> www.infradead.org Git - users/jedix/linux-maple.git/commit
iio: dac: ad5380: drop driver remove callbacks
authorDavid Lechner <dlechner@baylibre.com>
Wed, 23 Oct 2024 23:54:06 +0000 (18:54 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Fri, 1 Nov 2024 14:54:45 +0000 (14:54 +0000)
commit2c8988a3d87377b9dc12c23216510b344e96fe12
treef46a0acb83b314df04a406409ba8379aeb0a62d7
parentb85a05c75e0061543b90f5d37c0c37e795786a7b
iio: dac: ad5380: drop driver remove callbacks

Drop use of the driver remove callbacks in the ad5380 driver.

By making use of a few more devm_ helpers, we can avoid the need for
remove callbacks entirely.

Also make use of dev_err_probe() while at it.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20241023-iio-regulator-refactor-round-5-v1-2-d0bd396b3f50@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/ad5380.c