summaryrefslogtreecommitdiff
path: root/drivers/iio/dac/ad5624r.h
diff options
context:
space:
mode:
authorDavid Lechner <dlechner@baylibre.com>2024-10-23 18:54:11 -0500
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-11-01 14:54:46 +0000
commita88a6cf4f78d6e2e531f47878a94ed6176efa5c4 (patch)
tree3f6ccf39af8f1f1d300c594a9a8e992ad8e2df7a /drivers/iio/dac/ad5624r.h
parent86ab52970468792467e7edfd317eaf7c5bd80e07 (diff)
iio: dac: ad5624r: use devm_regulator_get_enable_read_voltage()
Simplify the code by using devm_regulator_get_enable_read_voltage(). Signed-off-by: David Lechner <dlechner@baylibre.com> Link: https://patch.msgid.link/20241023-iio-regulator-refactor-round-5-v1-7-d0bd396b3f50@baylibre.com Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio/dac/ad5624r.h')
-rw-r--r--drivers/iio/dac/ad5624r.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/iio/dac/ad5624r.h b/drivers/iio/dac/ad5624r.h
index 13964f3a22a4..14a439b06eb6 100644
--- a/drivers/iio/dac/ad5624r.h
+++ b/drivers/iio/dac/ad5624r.h
@@ -54,7 +54,6 @@ struct ad5624r_chip_info {
struct ad5624r_state {
struct spi_device *us;
const struct ad5624r_chip_info *chip_info;
- struct regulator *reg;
unsigned short vref_mv;
unsigned pwr_down_mask;
unsigned pwr_down_mode;