staging: unisys: visorinput: make structs & arrays const where possible
authorTim Sell <Timothy.Sell@unisys.com>
Fri, 2 Oct 2015 17:19:19 +0000 (13:19 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 4 Oct 2015 08:53:34 +0000 (09:53 +0100)
commitf9bda156cfd22f8a6598729bac831308f6db7997
treec1cf30f8ffdae5dd8b70f59e0e61a3cf71742b38
parentb3d5d05dcc4ac1d349c51ea743092375701aa8e1
staging: unisys: visorinput: make structs & arrays const where possible

This also gave me a warning with the assignment:

    visorinput_dev->keycode = visorkbd_keycode;

because input_dev->keycode is NOT static but visorkbd_keycode now is, so
I went ahead and also added logic to stash away non-static copies of
visorkbd_keycode[] and visorkbd_ext_keycode[] within visorinput_devdata,
and use the copy to assign to visorinput_dev->keycode.  This change is
also technically required, because user-space can remap keys, and we
don't want this to be shared with the other keyboard devices running on
the same system.

Signed-off-by: Tim Sell <Timothy.Sell@unisys.com>
Signed-off-by: Benjamin Romer <benjamin.romer@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorinput/visorinput.c