Re: [Patch v2][ 14/37] staging: imx-drm: parallel display: add regulator support.

From
Dan Carpenter <hidden>
Date
2013-10-17 16:47:59
Also in
dri-devel, linux-arm-kernel
Reply to
Denis Carikli, 2013-10-17
On Thu, Oct 17, 2013 at 05:02:12PM +0200, Denis Carikli wrote:
quoted hunk ↗ jump to hunk
+	if (imxpd->lcd_reg)
+		if (regulator_enable(imxpd->lcd_reg))
+			dev_err(imxpd->dev, "Failed to enable lcd regulator.\n");
+
In staging the style is to use braces around multi-line indents for
readability.  Or you could do:

	if (imxpd->lcd_reg && regulator_enable(imxpd->lcd_reg))
		dev_err(imxpd->dev, "Failed to enable lcd regulator.\n");

These kind of tiny things aren't worth resending, but for next time.

regards,
dan carpenter
Thread (2 messages) 2 messages, 2 authors, last reply 2013-10-17
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help