leds: tps6131x: Add V4L2_FLASH_LED_CLASS dependency
authorArnd Bergmann <arnd@arndb.de>
Fri, 20 Jun 2025 11:43:58 +0000 (13:43 +0200)
committerLee Jones <lee@kernel.org>
Tue, 1 Jul 2025 13:26:03 +0000 (14:26 +0100)
commitc3c38e80016548685e439b23999b4f0bd0ad7e05
treefe71e40f2ccab75bd6bed6dbffcabb0b6c5f63a9
parent1d7a74dfba583a9e8dde1f0234e91a5b49032863
leds: tps6131x: Add V4L2_FLASH_LED_CLASS dependency

This driver can optionally use the v4l2_flash infrastructure, but fails to
link built=in if that is in a loadable module:

ld.lld-21: error: undefined symbol: v4l2_flash_release
>>> referenced by leds-tps6131x.c:792 (drivers/leds/flash/leds-tps6131x.c:792)

Add the usual Kconfig dependency for it, still allowing it to be built when
CONFIG_V4L2_FLASH_LED_CLASS is disabled.

Fixes: b338a2ae9b31 ("leds: tps6131x: Add support for Texas Instruments TPS6131X flash LED driver")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Tested-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/r/20250620114440.4080938-1-arnd@kernel.org
Signed-off-by: Lee Jones <lee@kernel.org>
drivers/leds/flash/Kconfig