linux/drivers/iio/proximity
Luca Weiss 82c8936573 proximity: vl53l0x: Make VDD regulator actually optional
Contrary to what the naming might suggest, devm_regulator_get_optional
returns -ENODEV in case the regulator is not found which will trigger
probe error in this driver.

Use devm_regulator_get instead which will return a dummy regulator that
we can just use as if it was a proper regulator.

Fixes: d3d6dba56d ("proximity: vl53l0x: Handle the VDD regulator")
Signed-off-by: Luca Weiss <luca.weiss@fairphone.com>
Link: https://lore.kernel.org/r/20220614112049.302278-1-luca.weiss@fairphone.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
2022-06-18 17:55:17 +01:00
..
as3935.c iio: proximity: as3935: Fix alignment for DMA safety 2022-06-14 11:53:19 +01:00
cros_ec_mkbp_proximity.c iio: proximity: Add a ChromeOS EC MKBP proximity driver 2021-03-25 19:13:50 +00:00
isl29501.c iio: prox: isl29501: Fix buffer alignment in iio_push_to_buffers_with_timestamp() 2021-06-16 14:53:13 +01:00
Kconfig iio:proximity:sx9360: Add sx9360 support 2022-01-23 18:03:33 +00:00
Makefile iio:proximity:sx9360: Add sx9360 support 2022-01-23 18:03:33 +00:00
mb1232.c iio: proximity: mb1232: Switch to use fwnode_irq_get() 2022-04-28 19:28:41 +01:00
ping.c iio: proximity: ping: fix typo in comment 2022-06-11 14:35:27 +01:00
pulsedlight-lidar-lite-v2.c iio:proximity:pulsedlight: Switch from CONFIG_PM guards to pm_ptr() etc 2022-02-21 19:33:04 +00:00
rfd77402.c iio:proximity:rfd77492: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
srf04.c iio: proximity: srf04: Make use of device properties 2022-06-11 14:35:25 +01:00
srf08.c iio: srf08: Remove redundant if statement 2022-06-11 14:35:27 +01:00
sx9310.c iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
sx9324.c iio: sx9324: Add setting for CS idle mode 2022-06-14 11:53:11 +01:00
sx9360.c iio: sx9360: Add pre-charge resistor setting 2022-06-14 11:53:11 +01:00
sx9500.c iio:proximity:sx9500: Switch from CONFIG_PM_SLEEP guards to pm_sleep_ptr() etc 2022-02-18 11:46:03 +00:00
sx_common.c iio:proximity:sx_common: Fix device property parsing on DT systems 2022-04-04 09:19:01 +01:00
sx_common.h iio:proximity:sx9310: Extract common Semtech sensor logic 2022-01-23 18:03:33 +00:00
vcnl3020.c iio: proximity: vcnl3020: Drop unnecessary alignment requirement for i2c device 2022-06-14 11:53:19 +01:00
vl53l0x-i2c.c proximity: vl53l0x: Make VDD regulator actually optional 2022-06-18 17:55:17 +01:00