projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f6d851
)
tty/hvc_opal: constify of_device_id array
author
Fabian Frederick
<fabf@skynet.be>
Mon, 16 Mar 2015 19:17:10 +0000
(20:17 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Thu, 26 Mar 2015 21:49:10 +0000
(22:49 +0100)
of_device_id is always used as const.
(See driver.of_match_table and open firmware functions)
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/hvc/hvc_opal.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/tty/hvc/hvc_opal.c
b/drivers/tty/hvc/hvc_opal.c
index 071551bf3e9a559ae6ac1177f482ade55067eb42..543b234e70fc33bf728f6b30b66e0ef3048e4e1d 100644
(file)
--- a/
drivers/tty/hvc/hvc_opal.c
+++ b/
drivers/tty/hvc/hvc_opal.c
@@
-41,7
+41,7
@@
static const char hvc_opal_name[] = "hvc_opal";
-static struct of_device_id hvc_opal_match[] = {
+static
const
struct of_device_id hvc_opal_match[] = {
{ .name = "serial", .compatible = "ibm,opal-console-raw" },
{ .name = "serial", .compatible = "ibm,opal-console-hvsi" },
{ },