aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hvc_rtas.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-11-28 01:50:26 -0500
committerRusty Russell <rusty@rustcorp.com.au>2010-02-23 22:52:32 -0500
commit1dff399616a79b8ef5d61ad68f2ef1e1f590b465 (patch)
treeaa463b02bfdabc008a9e62717d25e259585e0f3d /drivers/char/hvc_rtas.c
parent971f3390003619ea4ac0b20ee93dfd3209025790 (diff)
hvc_console: make the ops pointer const.
This is nicer for modern R/O protection. And noone needs it non-const, so constify the callers as well. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> Signed-off-by: Amit Shah <amit.shah@redhat.com> To: Christian Borntraeger <borntraeger@de.ibm.com> Cc: linuxppc-dev@ozlabs.org
Diffstat (limited to 'drivers/char/hvc_rtas.c')
-rw-r--r--drivers/char/hvc_rtas.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hvc_rtas.c b/drivers/char/hvc_rtas.c
index 88590d040046..61c4a61558d9 100644
--- a/drivers/char/hvc_rtas.c
+++ b/drivers/char/hvc_rtas.c
@@ -71,7 +71,7 @@ static int hvc_rtas_read_console(uint32_t vtermno, char *buf, int count)
71 return i; 71 return i;
72} 72}
73 73
74static struct hv_ops hvc_rtas_get_put_ops = { 74static const struct hv_ops hvc_rtas_get_put_ops = {
75 .get_chars = hvc_rtas_read_console, 75 .get_chars = hvc_rtas_read_console,
76 .put_chars = hvc_rtas_write_console, 76 .put_chars = hvc_rtas_write_console,
77}; 77};