Skip to content

Commit

Permalink
auxdisplay: charlcd: Extract character LCD core from misc/panel
Browse files Browse the repository at this point in the history
Extract the character LCD core from the Parallel port LCD/Keypad Panel
driver in the misc subsystem, and convert it into a subdriver in the
auxdisplay subsystem.  This allows the character LCD core to be used by
other drivers later.

Compilation is controlled by its own Kconfig symbol CHARLCD, which is to
be selected by its users, but can be enabled manually for
compile-testing.

All functions changed their prefix from "lcd_" to "charlcd_", and gained
a "struct charlcd *" parameter to operate on a specific instance.
While the driver API thus is ready to support multiple instances, the
current limitation of a single display (/dev/lcd has a single misc minor
assigned) is retained.

No functional changes intended.

Signed-off-by: Geert Uytterhoeven <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
geertu authored and gregkh committed Mar 17, 2017
1 parent 2eec108 commit 39f8ea4
Show file tree
Hide file tree
Showing 6 changed files with 927 additions and 735 deletions.
3 changes: 3 additions & 0 deletions drivers/auxdisplay/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ menuconfig AUXDISPLAY

If you say N, all options in this submenu will be skipped and disabled.

config CHARLCD
tristate "Character LCD core support" if COMPILE_TEST

if AUXDISPLAY

config KS0108
Expand Down
1 change: 1 addition & 0 deletions drivers/auxdisplay/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
# Makefile for the kernel auxiliary displays device drivers.
#

obj-$(CONFIG_CHARLCD) += charlcd.o
obj-$(CONFIG_KS0108) += ks0108.o
obj-$(CONFIG_CFAG12864B) += cfag12864b.o cfag12864bfb.o
obj-$(CONFIG_IMG_ASCII_LCD) += img-ascii-lcd.o
Expand Down
Loading

0 comments on commit 39f8ea4

Please sign in to comment.