Thread (6 messages) flat view 6 messages, 2 authors, 2012-07-03
STALE5190d

[PATCH] can: flexcan: add a regulator for transceiver

From: Mark Brown <hidden>
Date: 2012-07-03 13:07:47
Also in: linux-can

On Tue, Jul 03, 2012 at 08:46:11PM +0800, Shawn Guo wrote:
+	if (priv->reg_xcvr) {
+		if (on)
+			regulator_enable(priv->reg_xcvr);
+		else
+			regulator_disable(priv->reg_xcvr);
+	}
No, the regulator API will stub itself out if not enabled, and if the
supply is fixed then a fixed voltage regulator will do the job.  We
shouldn't be open coding this stuff in individual users.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help