]> git.baikalelectronics.ru Git - kernel.git/commit
auxdisplay: charlcd: Add support for displays with more than two lines
authorGeert Uytterhoeven <geert@linux-m68k.org>
Fri, 10 Mar 2017 14:15:19 +0000 (15:15 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 17 Mar 2017 06:10:49 +0000 (15:10 +0900)
commit8f7412d4ee0fd94a61e061b863c390458aceed43
treef887a0ffced8b09515f52e84aaca5774b6dee40d
parentd0ca4dbf957b0c881b4651f8f7655ee69d35a54f
auxdisplay: charlcd: Add support for displays with more than two lines

On displays with more than two lines, the additional lines are stored in
the buffers used for the first two lines, but beyond the visible parts.
Adjust the DDRAM address calculation to cater for this.

When clearing the display, avoid writing more spaces than the actual
size of the physical buffer.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/auxdisplay/charlcd.c