Thread (17 messages) flat view 17 messages, 6 authors, 21d ago

Re: [PATCH v10 3/3] iio: dac: Add AD5529R DAC driver support

From: Andy Shevchenko <hidden>
Date: 2026-08-27 12:48:08
Also in: linux-doc, linux-iio, linux-riscv, linux-spi, lkml

On Thu, Aug 27, 2026 at 01:17:13PM +0200, Janani Sunil wrote:
On 8/27/26 10:23, Andy Shevchenko wrote:
quoted
On Thu, Aug 27, 2026 at 09:34:48AM +0200, Janani Sunil wrote:
...
quoted
quoted
+	for (unsigned int i = 0; i < ARRAY_SIZE(ad5529r_vss_supply_names); i++) {
+		ret = devm_regulator_get_enable_optional(dev,
+							 ad5529r_vss_supply_names[i]);
+		if (ret && ret != -ENODEV)
+			return dev_err_probe(dev, ret,
+					     "Failed to get and enable %s regulator\n",
+					     ad5529r_vss_supply_names[i]);
+	}
Hmm... Can we use bulk regulator approach here?
I don´t think the bulk helper fits here. Each VSS supply is independently
optional, and there is currently no optional bulk get-enable regulator
helper.
Ah, I see. Yeah, then we have to live with a for-loop...

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help