iio: adc: ad7606: enable Vdrive power supply

Enable Vdrive power supply. The "vdrive-supply" property is mandatory,
already declared in fdt dt_schema.

Signed-off-by: Angelo Dureghello <adureghello@baylibre.com>
Link: https://patch.msgid.link/20250530-wip-bl-ad7606-reference-voltages-v2-1-d5e1ad7e6f14@baylibre.com
Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
This commit is contained in:
Angelo Dureghello 2025-05-30 16:27:56 +02:00 committed by Jonathan Cameron
parent dc0756de69
commit 82f4ed3a01

View File

@ -1330,6 +1330,11 @@ int ad7606_probe(struct device *dev, int irq, void __iomem *base_address,
return dev_err_probe(dev, ret,
"Failed to enable specified AVcc supply\n");
ret = devm_regulator_get_enable(dev, "vdrive");
if (ret)
return dev_err_probe(dev, ret,
"Failed to enable Vdrive supply\n");
st->chip_info = chip_info;
if (st->chip_info->oversampling_num) {