mirror of
https://github.com/torvalds/linux.git
synced 2026-05-29 17:43:52 +02:00
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:
parent
dc0756de69
commit
82f4ed3a01
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user