Skip to content

Commit 1efdf17

Browse files
arndbmchehab
authored andcommitted
media: leds: as3645a: add V4L2_FLASH_LED_CLASS dependency
We get a link error when V4L2_FLASH_LED_CLASS=m and AS3645A is built-in: drivers/leds/leds-as3645a.o: In function `as3645a_v4l2_setup': leds-as3645a.c:(.text+0x258): undefined reference to `v4l2_flash_init' leds-as3645a.c:(.text+0x284): undefined reference to `v4l2_flash_indicator_init' leds-as3645a.c:(.text+0x2a4): undefined reference to `v4l2_flash_release' drivers/leds/leds-as3645a.o: In function `as3645a_remove': leds-as3645a.c:(.text+0x784): undefined reference to `v4l2_flash_release' This adds the same Kconfig dependency that the other V4L2 flash drivers in drivers/leds use, to avoid that broken configuration. Fixes: a56ba8f ("media: leds: as3645a: Add LED flash class driver") Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Jacek Anaszewski <[email protected]> Signed-off-by: Sakari Ailus <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
1 parent 4cd7d6c commit 1efdf17

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/leds/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ config LEDS_AAT1290
6161
config LEDS_AS3645A
6262
tristate "AS3645A LED flash controller support"
6363
depends on I2C && LEDS_CLASS_FLASH
64+
depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS
6465
help
6566
Enable LED flash class support for AS3645A LED flash
6667
controller. V4L2 flash API is provided as well if

0 commit comments

Comments
 (0)