linux/drivers/iio
David Lechner 41b94bc6d9
iio: addac: ad74115: Use devm_regulator_get_enable_read_voltage()
We can reduce boilerplate code by using
devm_regulator_get_enable_read_voltage().

To maintain backwards compatibility in the case a DT does not provide
an avdd-supply, we fall back to calling devm_regulator_get_enable()
so that there is no change in user-facing behavior (e.g. dummy regulator
will still be in sysfs).

Also add an informative error message when we failed to get the voltage
and knowing the voltage is required while we are touching this.

Signed-off-by: David Lechner <dlechner@baylibre.com>
Acked-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20240429-regulator-get-enable-get-votlage-v2-4-b1f11ab766c1@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2024-05-07 10:31:49 +09:00
..
accel Char/Misc and other driver subsystem updates for 6.9-rc1 2024-03-21 13:21:31 -07:00
adc Char/Misc and other driver subsystem updates for 6.9-rc1 2024-03-21 13:21:31 -07:00
addac iio: addac: ad74115: Use devm_regulator_get_enable_read_voltage() 2024-05-07 10:31:49 +09:00
afe iio: afe: rescale: Accept only offset channels 2023-10-17 20:25:32 +01:00
amplifiers iio: amplifiers: hmc425a: add support for LTC6373 Instrumentation Amplifier 2024-02-28 19:26:36 +00:00
buffer iio: buffer-dmaengine: export buffer alloc and free functions 2024-02-19 19:32:21 +00:00
cdc iio: cdc: ad7150: relax return value check for IRQ get 2023-08-01 18:55:55 +01:00
chemical treewide, serdev: change receive_buf() return type to size_t 2024-01-27 18:13:53 -08:00
common iio: invensense: remove redundant initialization of variable period 2024-01-23 22:06:56 +00:00
dac iio: dac: mcp4821: Switch to including mod_devicetable.h for struct of_device_id definition. 2024-02-28 19:26:35 +00:00
dummy iio: dummy: Use automatic lock and direct mode cleanup. 2024-02-17 16:16:10 +00:00
filter drivers: iio: filter: admv8818: add bypass mode 2023-08-08 09:51:06 +01:00
frequency iio: frequency: admfm2000: New driver 2024-02-17 16:16:10 +00:00
gyro iio: gyro: bmg160: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
health iio: health: afe4404: Use devm IIO helpers 2024-02-17 16:16:10 +00:00
humidity IIO: 1st set of new device support, features and cleanup for 6.9 2024-02-25 14:11:41 +01:00
imu Char/Misc and other driver subsystem updates for 6.9-rc1 2024-03-21 13:21:31 -07:00
light iio: light: al3010: Switch from linux/of.h to linux/mod_devicetable.h 2024-02-28 19:26:35 +00:00
magnetometer iio: magnetometer: add a driver for Voltafield AF8133J magnetometer 2024-02-28 19:26:37 +00:00
multiplexer iio: multiplexer: Switch to use dev_err_probe() helper 2022-11-23 19:43:57 +00:00
orientation iio: orientation: hid-sensor-rotation: Convert to platform remove callback returning void 2023-09-23 15:06:56 +01:00
position iio: position: hid-sensor-custom-intel-hinge: Convert to platform remove callback returning void 2023-09-23 15:06:56 +01:00
potentiometer iio: potentiometer: max5487: Drop ACPI_PTR() usage 2024-01-23 22:06:55 +00:00
potentiostat iio: Switch i2c drivers back to use .probe() 2023-05-21 18:54:53 +01:00
pressure Char/Misc and other driver subsystem updates for 6.9-rc1 2024-03-21 13:21:31 -07:00
proximity iio: proximity: isl29501: make use of of_device_id table 2024-02-28 19:26:38 +00:00
resolver iio: resolver: ad2s1210: add reset gpio support 2023-11-16 19:10:25 +00:00
temperature iio: temperature: ltc2983: explicitly set the name in chip_info 2024-02-28 19:26:36 +00:00
test iio: test: test gain-time-scale helpers 2024-02-17 16:16:09 +00:00
trigger iio: trigger: stm32-timer: Convert to platform remove callback returning void 2023-09-23 15:06:56 +01:00
iio_core.h iio: Remove unused declarations 2023-09-12 10:42:03 +01:00
iio_core_trigger.h
industrialio-backend.c iio: add the IIO backend framework 2024-02-19 19:32:22 +00:00
industrialio-buffer.c iio: buffer: Use IIO_SEPARATE instead of a hard-coded 0 2023-12-21 10:48:29 +00:00
industrialio-configfs.c
industrialio-core.c IIO: 1st set of new device support, features and cleanup for 6.9 2024-02-25 14:11:41 +01:00
industrialio-event.c iio: event: add optional event label support 2023-10-11 15:54:41 +01:00
industrialio-gts-helper.c iio: gts-helper: Fix division loop 2024-02-19 19:32:12 +00:00
industrialio-sw-device.c iio: Don't use bare "unsigned" 2022-07-01 11:19:08 +01:00
industrialio-sw-trigger.c iio: core: Fix entry not deleted when iio_register_sw_trigger_type() fails 2022-11-12 17:53:35 +00:00
industrialio-trigger.c iio: Make return value check for set_trigger_state() consistent 2023-07-20 19:21:30 +01:00
industrialio-triggered-event.c
inkern.c iio: inkern: Add a helper to query an available minimum raw value 2023-07-09 22:48:17 +01:00
Kconfig iio: add the IIO backend framework 2024-02-19 19:32:22 +00:00
Makefile iio: add the IIO backend framework 2024-02-19 19:32:22 +00:00
TODO iio: core: move 'mlock' to 'struct iio_dev_opaque' 2022-11-23 19:44:00 +00:00