Re: [PATCH v2] Input: Make ADS7846 independent on regulator

From
Mark Brown <hidden>
Date
2010-10-05 18:59:34
Also in
linux-arm-kernel, lkml
Reply to
Dmitry Torokhov, 2010-10-05
On Tue, Oct 05, 2010 at 11:07:03AM -0700, Dmitry Torokhov wrote:
On Tue, Oct 05, 2010 at 09:40:38AM -0700, Mark Brown wrote:
quoted
I really don't think it's a good idea to add this code to every single
regulator using driver - this seems like an enormous waste of time and
code complexity cost.  I have suggested several times that we should
extend the dummy regulator mode so that boards can enable it from code
as well as users enable it from Kconfig, I'm not sure why everyone is so
keen on bodging this in drivers.
It all depends on what instances you expect to encounted more often -
drivers or boards without regulators...
If the board doesn't use regulators you can just disable the regulator
API at which point it compiles out into stubs which report success -
this has been the case from day one.  There's only an issue if the board
has a regulator configuration which is partially visible to software.
Thread (18 messages) 18 messages, 6 authors, last reply 2010-10-06
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