Skip to content

Commit a56ba8f

Browse files
Sakari Ailusmchehab
authored andcommitted
media: leds: as3645a: Add LED flash class driver
Add a LED flash class driver for the as3654a flash controller. A V4L2 flash driver for it already exists (drivers/media/i2c/as3645a.c), and this driver is based on that. Signed-off-by: Sakari Ailus <[email protected]> Acked-by: Jacek Anaszewski <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 535a218 commit a56ba8f

File tree

4 files changed

+778
-0
lines changed

4 files changed

+778
-0
lines changed

MAINTAINERS

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,6 +2123,12 @@ S: Maintained
21232123
F: arch/arm64/
21242124
F: Documentation/arm64/
21252125

2126+
AS3645A LED FLASH CONTROLLER DRIVER
2127+
M: Sakari Ailus <[email protected]>
2128+
2129+
S: Maintained
2130+
F: drivers/leds/leds-as3645a.c
2131+
21262132
AS3645A LED FLASH CONTROLLER DRIVER
21272133
M: Laurent Pinchart <[email protected]>
21282134

drivers/leds/Kconfig

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ config LEDS_AAT1290
5858
help
5959
This option enables support for the LEDs on the AAT1290.
6060

61+
config LEDS_AS3645A
62+
tristate "AS3645A LED flash controller support"
63+
depends on I2C && LEDS_CLASS_FLASH
64+
help
65+
Enable LED flash class support for AS3645A LED flash
66+
controller. V4L2 flash API is provided as well if
67+
CONFIG_V4L2_FLASH_API is enabled.
68+
6169
config LEDS_BCM6328
6270
tristate "LED Support for Broadcom BCM6328"
6371
depends on LEDS_CLASS

drivers/leds/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ obj-$(CONFIG_LEDS_TRIGGERS) += led-triggers.o
88
# LED Platform Drivers
99
obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o
1010
obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
11+
obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
1112
obj-$(CONFIG_LEDS_BCM6328) += leds-bcm6328.o
1213
obj-$(CONFIG_LEDS_BCM6358) += leds-bcm6358.o
1314
obj-$(CONFIG_LEDS_BD2802) += leds-bd2802.o

0 commit comments

Comments
 (0)