]> git.baikalelectronics.ru Git - kernel.git/commit
vt: make vc_data pointers const in selection.h
authorJiri Slaby <jslaby@suse.cz>
Tue, 18 Aug 2020 08:56:51 +0000 (10:56 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Aug 2020 11:45:20 +0000 (13:45 +0200)
commit026e5b5a9362ce8a854b5fb3f1b02fb2286d987a
tree961f3b223b4227a4ed3969f24ea68c67dd2c630d
parentf2441fb1cb083d4eb7c956cced79ed747eac25c2
vt: make vc_data pointers const in selection.h

There are many functions declared in selection.h which only read from
struct vc_data passed as a parameter. Make all those uses const to hint
the compiler a bit.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20200818085706.12163-1-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/vt/consolemap.c
drivers/tty/vt/vt.c
drivers/video/console/sticon.c
drivers/video/fbdev/core/fbcon.c
include/linux/console.h
include/linux/consolemap.h
include/linux/selection.h