Skip to content

Commit 39f8ea4

Browse files
geertugregkh
authored andcommitted
auxdisplay: charlcd: Extract character LCD core from misc/panel
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]>
1 parent 2eec108 commit 39f8ea4

File tree

6 files changed

+927
-735
lines changed

6 files changed

+927
-735
lines changed

drivers/auxdisplay/Kconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ menuconfig AUXDISPLAY
1313

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

16+
config CHARLCD
17+
tristate "Character LCD core support" if COMPILE_TEST
18+
1619
if AUXDISPLAY
1720

1821
config KS0108

drivers/auxdisplay/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
# Makefile for the kernel auxiliary displays device drivers.
33
#
44

5+
obj-$(CONFIG_CHARLCD) += charlcd.o
56
obj-$(CONFIG_KS0108) += ks0108.o
67
obj-$(CONFIG_CFAG12864B) += cfag12864b.o cfag12864bfb.o
78
obj-$(CONFIG_IMG_ASCII_LCD) += img-ascii-lcd.o

0 commit comments

Comments
 (0)