lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Thu, 18 Apr 2013 12:15:17 +0100
From:	Mark Brown <broonie@...nel.org>
To:	Axel Lin <axel.lin@...ics.com>
Cc:	Liam Girdwood <lgirdwood@...il.com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH RFC v2] regulator: core: Add
 regulator_map_voltage_ascend() API

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.

Download attachment "signature.asc" of type "application/pgp-signature" (837 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ