]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: dac: mcp4922: drop remove() callback
authorDavid Lechner <dlechner@baylibre.com>
Fri, 12 Jul 2024 16:03:55 +0000 (11:03 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:38 +0000 (10:13 +0100)
commitf2e3fbc4443959c966a60519eef04178715dec74
tree7d1f863640412571a407c345bfac0a11fa0818e5
parentba2b35841ce9b0cdba125c7f16fb15416258040b
iio: dac: mcp4922: drop remove() callback

By using devm_iio_device_register(), we can drop the remove() callback
in the mcp4922 driver. We can also remove spi_set_drvdata() since there
are no more callers of spi_get_drvdata(). Also use dev_err_probe()
while we are at it.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Link: https://patch.msgid.link/20240712-iio-regulator-refactor-round-3-v1-4-835017bae43d@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
drivers/iio/dac/mcp4922.c