leds: qpnp-flash: Add snapshot of leds-qpnp-flash driver
This is snapshot of the leds-qpnp-flash driver as of msm-4.4
'commit d851b06217
("leds: qpnp-flash: Fix Use-after-free(UAF)
for debugfs")'.
Change-Id: I9753ab4e0fee03a957960003efc2941bc48616ac
Signed-off-by: Kiran Gunda <kgunda@codeaurora.org>
Signed-off-by: Shilpa Suresh <sbsure@codeaurora.org>
This commit is contained in:
parent
244c45dfec
commit
77b03b194e
3 changed files with 5 additions and 5 deletions
|
@ -1,10 +1,10 @@
|
|||
Qualcomm Technologies PNP Flash LED
|
||||
Qualcomm Technologies Inc. PNP Flash LED
|
||||
|
||||
QPNP (Qualcomm Technologies Plug N Play) Flash LED (Light
|
||||
QPNP (Qualcomm Technologies Inc. Plug N Play) Flash LED (Light
|
||||
Emitting Diode) driver is used to provide illumination to
|
||||
camera sensor when background light is dim to capture good
|
||||
picture. It can also be used for flashlight/torch application.
|
||||
It is part of PMIC on Qualcomm Technologies reference platforms.
|
||||
It is part of PMIC on Qualcomm Technologies Inc. reference platforms.
|
||||
The PMIC is connected to the host processor via SPMI bus.
|
||||
|
||||
Required properties:
|
||||
|
|
|
@ -598,7 +598,7 @@ config LEDS_QPNP
|
|||
|
||||
config LEDS_QPNP_FLASH
|
||||
tristate "Support for QPNP Flash LEDs"
|
||||
depends on LEDS_CLASS && SPMI
|
||||
depends on LEDS_CLASS && MFD_SPMI_PMIC
|
||||
help
|
||||
This driver supports the flash LED functionality of Qualcomm
|
||||
Technologies, Inc. QPNP PMICs. This driver supports PMICs up through
|
||||
|
|
|
@ -1269,7 +1269,7 @@ static void qpnp_flash_led_work(struct work_struct *work)
|
|||
int max_curr_avail_ma = 0;
|
||||
int total_curr_ma = 0;
|
||||
int i;
|
||||
u8 val;
|
||||
u8 val = 0;
|
||||
uint temp;
|
||||
|
||||
mutex_lock(&led->flash_led_lock);
|
||||
|
|
Loading…
Add table
Reference in a new issue