tty/sysrq: constify the sysrq API
authorEmil Velikov <emil.l.velikov@gmail.com>
Wed, 13 May 2020 21:43:42 +0000 (22:43 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 May 2020 12:53:19 +0000 (14:53 +0200)
commit23cbedf812ff7c7751582928e32d953d84c1c821
tree4b055d22cf349acc2b1c311a06fc4fea4f7239bb
parent0f1c9688a194d22bb81953bd85bd18b0115fd17f
tty/sysrq: constify the sysrq API

The user is not supposed to thinker with the underlying sysrq_key_op.
Make that explicit by adding a handful of const notations.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Jiri Slaby <jslaby@suse.com>
Cc: linux-kernel@vger.kernel.org
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://lore.kernel.org/r/20200513214351.2138580-2-emil.l.velikov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Documentation/admin-guide/sysrq.rst
drivers/tty/sysrq.c
include/linux/sysrq.h