diff options
author | Jiri Slaby <jslaby@suse.cz> | 2020-08-18 11:56:51 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-08-18 14:45:20 +0300 |
commit | d73568c4ccb01d01e20cd23fefbff8e4a05ddfac (patch) | |
tree | 961f3b223b4227a4ed3969f24ea68c67dd2c630d /drivers/video/console | |
parent | 2b2dd9c6ac41cc975fedc82fc871cbff1fb7f711 (diff) | |
download | linux-d73568c4ccb01d01e20cd23fefbff8e4a05ddfac.tar.xz |
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>
Diffstat (limited to 'drivers/video/console')
-rw-r--r-- | drivers/video/console/sticon.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/video/console/sticon.c b/drivers/video/console/sticon.c index 21a5c280c8c9..e21147e8a14e 100644 --- a/drivers/video/console/sticon.c +++ b/drivers/video/console/sticon.c @@ -236,7 +236,7 @@ static int sticon_blank(struct vc_data *c, int blank, int mode_switch) return 1; } -static u16 *sticon_screen_pos(struct vc_data *conp, int offset) +static u16 *sticon_screen_pos(const struct vc_data *conp, int offset) { int line; unsigned long p; |