Re: [RFC PATCH 2/8] regulator: Add Dialog DA906x voltage regulators support.

From
Mark Brown <hidden>
Date
2012-08-30 17:47:45
Also in
linux-watchdog, lkml
Reply to
Krystian Garbaciak, 2012-08-29
On Wed, Aug 29, 2012 at 03:50:00PM +0100, Krystian Garbaciak wrote:
Because, for some regulators, this is required: val += fvol->offset,
I was only able to reduce it to the following form.
What on earth makes you say this?  The above is obviously linear.

Besides, you're missing several points here.  One is that you should be
using the framework features, another is that you should be implementing
_sel.
quoted
quoted
+	bits = da906x_reg_read(hw, DA906X_REG_STATUS_D);
+	if (bits < 0)
+		return IRQ_HANDLED;
quoted
If you fail to detect an interrupt you report that you handled one...?
For me there is no sensible return value for this case.
IRQ_NONE.
Thread (19 messages) 19 messages, 4 authors, last reply 2012-08-31
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