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)
commit1d3b2af213902059d9f4b35eb15b53f8062dc3b3
treef887a0ffced8b09515f52e84aaca5774b6dee40d
parentac201479cc695cb0140e425b9ca8ab2ecdcd2f0d
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