[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190715155657.22976-1-jjhiblot@ti.com>
Date: Mon, 15 Jul 2019 17:56:55 +0200
From: Jean-Jacques Hiblot <jjhiblot@...com>
To: <jacek.anaszewski@...il.com>, <pavel@....cz>, <robh+dt@...nel.org>,
<mark.rutland@....com>, <daniel.thompson@...aro.org>
CC: <dmurphy@...com>, <linux-leds@...r.kernel.org>,
<linux-kernel@...r.kernel.org>, <devicetree@...r.kernel.org>,
Jean-Jacques Hiblot <jjhiblot@...com>
Subject: [PATCH v2 0/2] leds: Add control of the voltage/current regulator to the LED core
This series makes it possible for the LED core to manage the power supply
of a LED. It uses the regulator API to disable/enable the power if when the
LED is turned on/off.
This is especially useful in situations where the LED driver/controller is
not supplying the power.
changes in v2:
- use devm_regulator_get_optional() to avoid using the dummy regulator and do
some unnecessary work
Jean-Jacques Hiblot (2):
dt-bindings: leds: document the "power-supply" property
leds: Add control of the voltage/current regulator to the LED core
.../devicetree/bindings/leds/common.txt | 6 +++
drivers/leds/led-class.c | 15 ++++++
drivers/leds/led-core.c | 50 +++++++++++++++++--
drivers/leds/leds.h | 1 +
include/linux/leds.h | 4 ++
5 files changed, 73 insertions(+), 3 deletions(-)
--
2.17.1
Powered by blists - more mailing lists