Re: [PATCH v2] leds: Add LED class driver for regulator drivenLEDs.

From: Antonio Ospite
Date: Tue Dec 15 2009 - 05:48:22 EST


On Mon, 7 Dec 2009 15:08:13 +0100
Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx> wrote:

> This driver provides an interface for controlling LEDs (or vibrators)
> connected to PMICs for which there is a regulator framework driver.
>
> This driver can be used, for instance, to control vibrator on all Motorola EZX
> phones using the pcap-regulator driver services.
>
> Signed-off-by: Antonio Ospite <ospite@xxxxxxxxxxxxxxxxx>
> ---
>
> Addressed the observations from Mark Brown, Liam Girdwood and Linus Walleij.
>
> Patch against:
> git://git.o-hand.com/linux-rpurdie-leds for-mm
>
> Changes since v1:
> - Use "vled" as supply id.
> - use regulator_get_exclusive
> - remove double semicolon
> - check for LED_OFF instead of 0
> - handle regulators which can't change voltages
> - rename led_regulator_get_vdd to led_regulator_get_voltage
> - split regulator_led_set_value out of led_work
> - allow setting an initial brightness value
> - fix sections markers (__devinit, __devexit, etc.)
>
> The only slight doubt I still have is about
> led_regulator_get_max_brightness(), I have to use regulator_set_voltage() there
> to tell if a regulator has REGULATOR_CHANGE_VOLTAGE enabled.
>
> Regards,
> Antonio

Ping?

Thanks,
Antonio

--
Antonio Ospite
http://ao2.it

PGP public key ID: 0x4553B001

A: Because it messes up the order in which people normally read text.
See http://en.wikipedia.org/wiki/Posting_style
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing in e-mail?

Attachment: pgp00000.pgp
Description: PGP signature