public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mark Brown <broonie@kernel.org>
To: Axel Lin <axel.lin@ingics.com>
Cc: Liam Girdwood <lgirdwood@gmail.com>, linux-kernel@vger.kernel.org
Subject: Re: [PATCH RFC v2] regulator: core: Add regulator_map_voltage_ascend() API
Date: Thu, 18 Apr 2013 12:15:17 +0100	[thread overview]
Message-ID: <20130418111517.GD13687@opensource.wolfsonmicro.com> (raw)
In-Reply-To: <1366252489.17095.1.camel@phoenix>

[-- Attachment #1: Type: text/plain, Size: 676 bytes --]

On Thu, Apr 18, 2013 at 10:34:49AM +0800, Axel Lin wrote:
> A lot of regulator hardware has ascendant voltage list.
> This patch adds regulator_map_voltage_ascend() and export it.
> 
> Drivers that have ascendant voltage list can use this as their map_voltage()
> operation, this is more efficient than default regulator_map_voltage_iterate()
> function.

I've applied this since it's a good API to have and it'll let people
build drivers on it.  It does seem like if we know the list is sorted we
ought to be able to take advantage of that to do better than a linear
scan.  Not sure it's worth bothering though as these tend not to have
that many values to map.

[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

      reply	other threads:[~2013-04-18 11:15 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-04-18  2:34 [PATCH RFC v2] regulator: core: Add regulator_map_voltage_ascend() API Axel Lin
2013-04-18 11:15 ` Mark Brown [this message]

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=20130418111517.GD13687@opensource.wolfsonmicro.com \
    --to=broonie@kernel.org \
    --cc=axel.lin@ingics.com \
    --cc=lgirdwood@gmail.com \
    --cc=linux-kernel@vger.kernel.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