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

Commit c388c4f1 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

leds: qpnp-flash-v2: Add support for QPNP flash v2 LED driver



QPNP Flash v2 LED driver supports the flash LED peripheral on
QTI PMICs like PMI8998, PM8150L and their derivatives to support
camera flash operation.

This is taken as a snapshot from msm-4.14 kernel
'commit 9bb584ae3a9d ("msm/sde/rotator: Add rev checks for sdmmagpie")'

This change also splits some functions to fix cyclomatic complexity
warnings.

Change-Id: I168b1e3e5ce62852f37ee2653aada90f2a75e2ec
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 215d6212
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -756,6 +756,17 @@ config LEDS_NIC78BX
	  To compile this driver as a module, choose M here: the module
	  will be called leds-nic78bx.

config LEDS_QPNP_FLASH_V2
        tristate "Support for QPNP V2 Flash LEDs"
        depends on LEDS_CLASS && MFD_SPMI_PMIC
	select LEDS_TRIGGERS
        help
          This driver supports the flash V2 LED functionality of Qualcomm
          Technologies, Inc. QPNP PMICs.  This driver supports PMICs starting
          from PMI8998, PM8150L and their derivatives.  It can configure the
          flash LED target current for several independent channels.  It also
          supports various over current and over temperature mitigation features.

comment "LED Triggers"
source "drivers/leds/trigger/Kconfig"

+1 −0
Original line number Diff line number Diff line
@@ -78,6 +78,7 @@ obj-$(CONFIG_LEDS_MT6323) += leds-mt6323.o
obj-$(CONFIG_LEDS_LM3692X)		+= leds-lm3692x.o
obj-$(CONFIG_LEDS_SC27XX_BLTC)		+= leds-sc27xx-bltc.o
obj-$(CONFIG_LEDS_LM3601X)		+= leds-lm3601x.o
obj-$(CONFIG_LEDS_QPNP_FLASH_V2)        += leds-qpnp-flash-v2.o

# LED SPI Drivers
obj-$(CONFIG_LEDS_CR0014114)		+= leds-cr0014114.o
Loading