]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
iio: dac: mcp4728: use devm_regulator_get_enable_read_voltage()
authorDavid Lechner <dlechner@baylibre.com>
Fri, 12 Jul 2024 16:03:53 +0000 (11:03 -0500)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Sat, 3 Aug 2024 09:13:38 +0000 (10:13 +0100)
commit475da4ee1494eaa70075571b74431c86a20fac23
tree3bd4ac220a097277824379364db1ea7f8a895cb1
parentae40596980dd108506e0c4889b99eb5dbfc7dd86
iio: dac: mcp4728: use devm_regulator_get_enable_read_voltage()

This makes use of the new devm_regulator_get_enable_read_voltage()
helper function to reduce boilerplate code in the MCP4728 DAC driver.

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