diff options
author | 2024-01-22 12:03:22 +0100 | |
---|---|---|
committer | 2024-01-27 18:08:52 -0800 | |
commit | d4c0c481e49fdf483c43e13e4a419ea19c045023 (patch) | |
tree | b24e8036f6d354ceb8e1df73f8e8258f77b34b6d /drivers/tty/vt | |
parent | tty: vt: pass vc_resize_user as a parameter (diff) | |
download | linux-d4c0c481e49fdf483c43e13e4a419ea19c045023.tar.gz linux-d4c0c481e49fdf483c43e13e4a419ea19c045023.tar.bz2 linux-d4c0c481e49fdf483c43e13e4a419ea19c045023.zip |
tty: vt: make vc_is_sel()'s vc const
It's only an aid to people reading the header and/or calling
vc_is_sel(). vc is only tested there, so having it const makes sense.
Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Tested-by: Helge Deller <deller@gmx.de> # parisc STI console
Link: https://lore.kernel.org/r/20240122110401.7289-9-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/vt')
-rw-r--r-- | drivers/tty/vt/selection.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/vt/selection.c b/drivers/tty/vt/selection.c index 91d789c025c6..34ee09f5a8f4 100644 --- a/drivers/tty/vt/selection.c +++ b/drivers/tty/vt/selection.c @@ -88,7 +88,7 @@ void clear_selection(void) } EXPORT_SYMBOL_GPL(clear_selection); -bool vc_is_sel(struct vc_data *vc) +bool vc_is_sel(const struct vc_data *vc) { return vc == vc_sel.cons; } |