forked from Minki/linux
a8efe51631
Like many other panel drivers, this one fails to build when backlight
support is disabled:
drivers/gpu/drm/panel/panel-raydium-rm68200.o: In function `rm68200_probe':
panel-raydium-rm68200.c:(.text+0x14a): undefined reference to `devm_of_find_backlight'
This adds the appropriate dependency.
Note that while include/linux/backlight.h provides a stub inline when
backlight support is not enabled, this isn't enough to deal with the
case where backlight support is built as a module but the panel driver
is built-in, in which case linking will still fail as above.
One way to avoid this is to add a dependency such as this:
depends on BACKLIGHT_CLASS_DEVICE || BACKLIGHT_CLASS_DEVICE=n
but that is rather complex and misses the point that the panel support
is mostly useless without backlight support.
Fixes:
|
||
---|---|---|
.. | ||
Kconfig | ||
Makefile | ||
panel-arm-versatile.c | ||
panel-ilitek-ili9322.c | ||
panel-innolux-p079zca.c | ||
panel-jdi-lt070me05000.c | ||
panel-lg-lg4573.c | ||
panel-lvds.c | ||
panel-orisetech-otm8009a.c | ||
panel-panasonic-vvx10f034n00.c | ||
panel-raspberrypi-touchscreen.c | ||
panel-raydium-rm68200.c | ||
panel-samsung-ld9040.c | ||
panel-samsung-s6e3ha2.c | ||
panel-samsung-s6e8aa0.c | ||
panel-samsung-s6e63j0x03.c | ||
panel-seiko-43wvf1g.c | ||
panel-sharp-lq101r1sx01.c | ||
panel-sharp-ls043t1le01.c | ||
panel-simple.c | ||
panel-sitronix-st7789v.c |