tgreenwood93 / fbtft

adds dupport for ili9488 and 18-bit color data to fbtft driver
5 stars 1 forks source link

Build error: BL_CORE_DRIVER1 undeclared #1

Open mathquis opened 5 years ago

mathquis commented 5 years ago

Hi!

When building fbtft using your repository to get ILI9488 support on my Raspberry Pi, I get the following error:

drivers/staging/fbtft/fbtft-core.c: In function ‘fbtft_backlight_update_status’:
drivers/staging/fbtft/fbtft-core.c:255:39: error: ‘BL_CORE_DRIVER1’ undeclared (first use in this function); did you mean ‘BL_CORE_FBBLANK’?
  bool polarity = !!(bd->props.state & BL_CORE_DRIVER1);
                                       ^~~~~~~~~~~~~~~
                                       BL_CORE_FBBLANK
drivers/staging/fbtft/fbtft-core.c:255:39: note: each undeclared identifier is reported only once for each function it appears in
drivers/staging/fbtft/fbtft-core.c: In function ‘fbtft_register_backlight’:
drivers/staging/fbtft/fbtft-core.c:318:21: error: ‘BL_CORE_DRIVER1’ undeclared (first use in this function); did you mean ‘BL_CORE_FBBLANK’?
   bl_props.state |= BL_CORE_DRIVER1;
                     ^~~~~~~~~~~~~~~
                     BL_CORE_FBBLANK
scripts/Makefile.build:303: recipe for target 'drivers/staging/fbtft/fbtft-core.o' failed
make[3]: *** [drivers/staging/fbtft/fbtft-core.o] Error 1
scripts/Makefile.build:544: recipe for target 'drivers/staging/fbtft' failed
make[2]: *** [drivers/staging/fbtft] Error 2
scripts/Makefile.build:544: recipe for target 'drivers/staging' failed
make[1]: *** [drivers/staging] Error 2
Makefile:1052: recipe for target 'drivers' failed
make: *** [drivers] Error 2

Can you help me?

neilabdev commented 5 years ago

+1

pietervandermeer commented 5 years ago

+1

UCTRONICS commented 4 years ago

@mathquis I have the same problem,have you solved it?

MarkoBursic commented 4 years ago

Me too, any news hot to solve?

vinayprydotinfotech commented 4 years ago

https://lore.kernel.org/patchwork/patch/1140464/

He Guys Above Solved ...At-least by Code don't know functional effect

MarkoBursic commented 4 years ago

https://lore.kernel.org/patchwork/patch/1140464/

He Guys Above Solved ...At-least by Code don't know functional effect

I had solved it too, it's about changes from legacy kernel 4.4 to newer one 5.4.y. I do use current mainline kernel, I had never had a device with a backlight, the error came because I have cloned an outdated driver to be changed to suit my ssd1322 lcd. Finally, I have made a new diver for ssd1322 which is tested and working.

https://github.com/MarkoBursic/fbtft---SSD1322