Thread (9 messages) 9 messages, 2 authors, 2015-01-06

Re: [PATCH 1/2] regulator: core: Add a sanity check on the regulator_ enable/disable functions

From: Mark Brown <broonie@kernel.org>
Date: 2015-01-06 16:03:43
Also in: lkml

On Tue, Jan 06, 2015 at 01:26:28PM +0100, Gregory CLEMENT wrote:
On 06/01/2015 13:00, Mark Brown wrote:
quoted
This really only applies if it's likely that some thing that always gets
used if it's there might be missing which isn't the case for regulators,
it's not at all common to have power supplies that might be missing and
Well the pattern the following pattern is very common in the drivers using
the regulator:
if (!IS_ERR(regulator_pointer)
	regulator_disable(regulator_pointer);
So for me it was a good hint that we can factorize it.
It is?  It shouldn't be...

Attachments

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