projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7298bd1
)
tty: hvcs: constify vio_device_id
author
Arvind Yadav
<arvind.yadav.cs@gmail.com>
Thu, 17 Aug 2017 13:34:23 +0000
(19:04 +0530)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Mon, 28 Aug 2017 18:51:22 +0000
(20:51 +0200)
vio_device_id are not supposed to change at runtime. All functions
working with vio_device_id provided by <asm/vio.h> work with
const vio_device_id. So mark the non-const structs as const.
Signed-off-by: Arvind Yadav <arvind.yadav.cs@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvcs.c
patch
|
blob
|
history
diff --git
a/drivers/tty/hvc/hvcs.c
b/drivers/tty/hvc/hvcs.c
index 79cc5beea2da20fe8525b513af53a323027479d7..7320190a5886ee1498f9f38c9f2141156db42738 100644
(file)
--- a/
drivers/tty/hvc/hvcs.c
+++ b/
drivers/tty/hvc/hvcs.c
@@
-675,7
+675,7
@@
static int khvcsd(void *unused)
return 0;
}
-static struct vio_device_id hvcs_driver_table[] = {
+static
const
struct vio_device_id hvcs_driver_table[] = {
{"serial-server", "hvterm2"},
{ "", "" }
};