diff options
author | David Lechner <dlechner@baylibre.com> | 2024-07-12 19:03:57 +0300 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-08-03 12:13:38 +0300 |
commit | 26560d94d1f8bf40a83259a509835da70d6108d3 (patch) | |
tree | 9fcd36d11acf5f92a98f9820cc14086ba9282467 /drivers/mfd/twl6040.c | |
parent | f2e3fbc4443959c966a60519eef04178715dec74 (diff) | |
download | linux-26560d94d1f8bf40a83259a509835da70d6108d3.tar.xz |
iio: adc: mcp3911: 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 MCP3911 ADC driver.
The error message is slightly changed since there are fewer error
return paths.
An extra parameter is added to the config callback to avoid adding
state that is not used outside of the probe() function.
Signed-off-by: David Lechner <dlechner@baylibre.com>
Reviewed-by: Marcus Folkesson <marcus.folkesson@gmail.com>
Link: https://patch.msgid.link/20240712-iio-regulator-refactor-round-3-v1-6-835017bae43d@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/mfd/twl6040.c')
0 files changed, 0 insertions, 0 deletions