Thread (13 messages) flat view 13 messages, 5 authors, 2014-08-22

Re: [PATCH v7][ 3/5] video: mx3fb: Introduce regulator support.

From: Alexander Shiyan <hidden>
Date: 2014-03-14 09:23:55
Also in: linux-fbdev

???????, 14 ????? 2014, 10:12 +01:00 ?? Denis Carikli [off-list ref]:
This commit is based on the following commit by Fabio Estevam:
  4344429 video: mxsfb: Introduce regulator support

Signed-off-by: Denis Carikli <redacted>
---
...
+	if (np) {
+		if (regulator_name)
+			mx3fbi->reg_lcd = regulator_get(NULL, regulator_name);
+
+		if (IS_ERR(mx3fbi->reg_lcd))
+			return PTR_ERR(mx3fbi->reg_lcd);
+	} else {
+		/* Permit that driver without a regulator in non-dt mode */
+		mx3fbi->reg_lcd = regulator_get(dev, "lcd");
+	}
I am still completely do not understand why do you need to have
"regulator_name" property?
Why this cannot be devm_regulator_get(dev, "lcd") in both DT and non-DT case?

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