summaryrefslogtreecommitdiff
path: root/drivers/tty
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2016-01-25 01:32:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-01-28 22:55:40 -0800
commit88867e3d0b7eea256c1cd432b0a3c7a21e8edf07 (patch)
treefb27b916e4ffd00f5cdafd690982d5fbeb7670f2 /drivers/tty
parent327b882d3bcc1fba82dbd39b5cf5a838c81218e2 (diff)
downloadlwn-88867e3d0b7eea256c1cd432b0a3c7a21e8edf07.tar.gz
lwn-88867e3d0b7eea256c1cd432b0a3c7a21e8edf07.zip
Staging: speakup: fix read scrolled-back VT
Previously, speakup would always read the non-scrolled part of the VT, even when the VT is scrolled back with shift-page. This patch makes vt.c export screen_pos so that speakup can use it to properly access the content of the scrolled-back VT. This was tested with both vgacon and fbcon. Signed-off-by: Samuel Thibault <samuel.thibault@ens-lyon.org> Reviewed-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/vt/vt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/vt/vt.c b/drivers/tty/vt/vt.c
index 4462d167900c..12210dab9ab1 100644
--- a/drivers/tty/vt/vt.c
+++ b/drivers/tty/vt/vt.c
@@ -4250,6 +4250,7 @@ unsigned short *screen_pos(struct vc_data *vc, int w_offset, int viewed)
{
return screenpos(vc, 2 * w_offset, viewed);
}
+EXPORT_SYMBOL_GPL(screen_pos);
void getconsxy(struct vc_data *vc, unsigned char *p)
{