Skip to content

Commit

Permalink
media: leds: as3645a: Add LED flash class driver
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
Sakari Ailus authored and mchehab committed Aug 27, 2017
1 parent 535a218 commit a56ba8f
Show file tree
Hide file tree
Showing 4 changed files with 778 additions and 0 deletions.
6 changes: 6 additions & 0 deletions MAINTAINERS
Original file line number Diff line number Diff line change
Expand Up @@ -2123,6 +2123,12 @@ S: Maintained
F: arch/arm64/
F: Documentation/arm64/

AS3645A LED FLASH CONTROLLER DRIVER
M: Sakari Ailus <[email protected]>
L: [email protected]
S: Maintained
F: drivers/leds/leds-as3645a.c

AS3645A LED FLASH CONTROLLER DRIVER
M: Laurent Pinchart <[email protected]>
L: [email protected]
Expand Down
8 changes: 8 additions & 0 deletions drivers/leds/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,14 @@ config LEDS_AAT1290
help
This option enables support for the LEDs on the AAT1290.

config LEDS_AS3645A
tristate "AS3645A LED flash controller support"
depends on I2C && LEDS_CLASS_FLASH
help
Enable LED flash class support for AS3645A LED flash
controller. V4L2 flash API is provided as well if
CONFIG_V4L2_FLASH_API is enabled.

config LEDS_BCM6328
tristate "LED Support for Broadcom BCM6328"
depends on LEDS_CLASS
Expand Down
1 change: 1 addition & 0 deletions drivers/leds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ obj-$(CONFIG_LEDS_TRIGGERS) += led-triggers.o
# LED Platform Drivers
obj-$(CONFIG_LEDS_88PM860X) += leds-88pm860x.o
obj-$(CONFIG_LEDS_AAT1290) += leds-aat1290.o
obj-$(CONFIG_LEDS_AS3645A) += leds-as3645a.o
obj-$(CONFIG_LEDS_BCM6328) += leds-bcm6328.o
obj-$(CONFIG_LEDS_BCM6358) += leds-bcm6358.o
obj-$(CONFIG_LEDS_BD2802) += leds-bd2802.o
Expand Down
Loading

0 comments on commit a56ba8f

Please sign in to comment.