media: leds: as3645a: add V4L2_FLASH_LED_CLASS depdendency
Subsystems (2)
PATCH 1/1 media: leds: as3645a: add V4L2_FLASH_LED_CLASS depdendency
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.
--- drivers/leds/Kconfig | 1 + 1 file changed, 1 insertion(+)
The patch that caused the problem is currently in the v4l git tree, rather than the leds tree. Please merge this through an appropriate path, either v4l or led, depending on the timing.
drivers/leds/Kconfig +1 -0
@@ -61,6 +61,7 @@ config LEDS_AAT1290 config LEDS_AS3645A tristate "AS3645A LED flash controller support" depends on I2C && LEDS_CLASS_FLASH + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS help Enable LED flash class support for AS3645A LED flash controller. V4L2 flash API is provided as well if
Signature · 1 line
2.9.0
Hi Arnd,
Thanks for the patch.
Quoted 28 lines · Arnd Bergmann
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 tov4l2_flash_init' leds-as3645a.c:(.text+0x284): undefined reference tov4l2_flash_indicator_init' leds-as3645a.c:(.text+0x2a4): undefined reference tov4l2_flash_release' drivers/leds/leds-as3645a.o: In functionas3645a_remove':
leds-as3645a.c:(.text+0x784): undefined reference to `v4l2_flash_release'This adds the same
Kconfigdependency that the other V4L2 flash drivers indrivers/ledsuse, to avoid that broken configuration.Fixes a56ba8fbcb55 ("media: leds: as3645a: Add LED flash class driver")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/leds/Kconfig | 1 + 1 file changed, 1 insertion(+)The patch that caused the problem is currently in the v4l git tree, rather than the leds tree. Please merge this through an appropriate path, either v4l or led, depending on the timing.
drivers/leds/Kconfig +0
-0
drivers/leds/Kconfig config LEDS_AAT1290 · line 67
Quoted 7 lines
drivers/leds/Kconfig +1
-0@@ -61,6 +61,7 @@ config LEDS_AAT1290 config LEDS_AS3645A tristate "AS3645A LED flash controller support" depends on I2C && LEDS_CLASS_FLASH + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS help Enable LED flash class support for AS3645A LED flash controller. V4L2 flash API is provided as well if
Signature · 2 lines
Best regards, Jacek Anaszewski
Hi Jacek and Arnd,
Thanks for fixing this plus the ack! I chatted with Mauro, and as the patches are still only in mediatree, we'll apply this there, possibly with a minor spelling fix to the subject (depdendency -> dependency).
<URL:https://git.linuxtv.org/sailus/media_tree.git/commit/?h=as3645a-fix2>
Cc linux-media.
Quoted 43 lines · Jacek Anaszewski
Hi Arnd,
Thanks for the patch.
Quoted 28 lines · Arnd Bergmann
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 tov4l2_flash_init' leds-as3645a.c:(.text+0x284): undefined reference tov4l2_flash_indicator_init' leds-as3645a.c:(.text+0x2a4): undefined reference tov4l2_flash_release' drivers/leds/leds-as3645a.o: In functionas3645a_remove':
leds-as3645a.c:(.text+0x784): undefined reference to `v4l2_flash_release'This adds the same
Kconfigdependency that the other V4L2 flash drivers indrivers/ledsuse, to avoid that broken configuration.Fixes a56ba8fbcb55 ("media: leds: as3645a: Add LED flash class driver")Signed-off-by Arnd Bergmann <[email protected]>--- drivers/leds/Kconfig | 1 + 1 file changed, 1 insertion(+)The patch that caused the problem is currently in the v4l git tree, rather than the leds tree. Please merge this through an appropriate path, either v4l or led, depending on the timing.
drivers/leds/Kconfig +0
-0drivers/leds/Kconfig config LEDS_AAT1290 · line 67
Quoted 7 lines
drivers/leds/Kconfig +1
-0@@ -61,6 +61,7 @@ config LEDS_AAT1290 config LEDS_AS3645A tristate "AS3645A LED flash controller support" depends on I2C && LEDS_CLASS_FLASH + depends on V4L2_FLASH_LED_CLASS || !V4L2_FLASH_LED_CLASS help Enable LED flash class support for AS3645A LED flash controller. V4L2 flash API is provided as well ifAcked-by Jacek Anaszewski <[email protected]>
Signature · 2 lines
Sakari Ailus [email protected]
Quoted 9 lines · Arnd Bergmann
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 tov4l2_flash_init' leds-as3645a.c:(.text+0x284): undefined reference tov4l2_flash_indicator_init' leds-as3645a.c:(.text+0x2a4): undefined reference tov4l2_flash_release' drivers/leds/leds-as3645a.o: In functionas3645a_remove':
leds-as3645a.c:(.text+0x784): undefined reference to `v4l2_flash_release'
Quoted 5 lines
This adds the same
Kconfigdependency that the other V4L2 flash drivers indrivers/ledsuse, to avoid that broken configuration.Fixes a56ba8fbcb55 ("media: leds: as3645a: Add LED flash class driver")Signed-off-by Arnd Bergmann <[email protected]>
Signature · 2 lines
(english) http://www.livejournal.com/~pavelmachek (cesky, pictures) http://atrey.karlin.mff.cuni.cz/~pavel/picture/horses/blog.html