linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Mark Brown <broonie@opensource.wolfsonmicro.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Igor Grinberg <grinberg@compulab.co.il>,
	Marek Vasut <marek.vasut@gmail.com>,
	linux-arm-kernel@lists.infradead.org, vapier@gentoo.org,
	khilman@deeprootsystems.com, linux-kernel@vger.kernel.org,
	pavel@ucw.cz, linux-input@vger.kernel.org, eric.y.miao@gmail.com,
	akpm@linux-foundation.org
Subject: Re: [PATCH v2] Input: Make ADS7846 independent on regulator
Date: Tue, 5 Oct 2010 11:59:43 -0700	[thread overview]
Message-ID: <20101005185942.GA22808@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <20101005180703.GD21399@core.coreip.homeip.net>

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:

> > 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.

  reply	other threads:[~2010-10-05 18:59 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-31  7:09 [PATCH v2] Input: Make ADS7846 independent on regulator Marek Vasut
2010-09-07 12:23 ` Igor Grinberg
2010-09-07 12:53   ` Mark Brown
2010-09-09  8:27     ` Marek Vasut
2010-09-09  9:41       ` Mark Brown
2010-10-01  0:20         ` Marek Vasut
2010-10-05  6:49         ` Igor Grinberg
2010-10-05  8:21           ` Marek Vasut
2010-10-05 16:16           ` Dmitry Torokhov
2010-10-05 16:40             ` Mark Brown
2010-10-05 18:07               ` Dmitry Torokhov
2010-10-05 18:59                 ` Mark Brown [this message]
2010-10-05 19:35                   ` Alan Cox
2010-10-05 20:42                     ` Mark Brown
2010-10-05 22:09                     ` Linus Walleij
2010-10-05 22:52                       ` Mark Brown
2010-10-06  8:01                         ` Linus Walleij
2010-10-06 15:14                           ` Mark Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20101005185942.GA22808@opensource.wolfsonmicro.com \
    --to=broonie@opensource.wolfsonmicro.com \
    --cc=akpm@linux-foundation.org \
    --cc=dmitry.torokhov@gmail.com \
    --cc=eric.y.miao@gmail.com \
    --cc=grinberg@compulab.co.il \
    --cc=khilman@deeprootsystems.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    --cc=linux-input@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marek.vasut@gmail.com \
    --cc=pavel@ucw.cz \
    --cc=vapier@gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).