Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77b03b19 authored by Kiran Gunda's avatar Kiran Gunda Committed by Gerrit - the friendly Code Review server
Browse files

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 d851b062 ("leds: qpnp-flash: Fix Use-after-free(UAF)
for debugfs")'.

Change-Id: I9753ab4e0fee03a957960003efc2941bc48616ac
Signed-off-by: default avatarKiran Gunda <kgunda@codeaurora.org>
Signed-off-by: default avatarShilpa Suresh <sbsure@codeaurora.org>
parent 244c45df
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
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:
+1 −1
Original line number Diff line number Diff line
@@ -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
+1 −1
Original line number Diff line number Diff line
@@ -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);