diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2009-11-28 01:50:26 -0500 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2010-02-23 22:52:32 -0500 |
commit | 1dff399616a79b8ef5d61ad68f2ef1e1f590b465 (patch) | |
tree | aa463b02bfdabc008a9e62717d25e259585e0f3d /drivers/char/hvc_udbg.c | |
parent | 971f3390003619ea4ac0b20ee93dfd3209025790 (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_udbg.c')
-rw-r--r-- | drivers/char/hvc_udbg.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hvc_udbg.c b/drivers/char/hvc_udbg.c index bd63ba878a56..b0957e61a7be 100644 --- a/drivers/char/hvc_udbg.c +++ b/drivers/char/hvc_udbg.c | |||
@@ -58,7 +58,7 @@ static int hvc_udbg_get(uint32_t vtermno, char *buf, int count) | |||
58 | return i; | 58 | return i; |
59 | } | 59 | } |
60 | 60 | ||
61 | static struct hv_ops hvc_udbg_ops = { | 61 | static const struct hv_ops hvc_udbg_ops = { |
62 | .get_chars = hvc_udbg_get, | 62 | .get_chars = hvc_udbg_get, |
63 | .put_chars = hvc_udbg_put, | 63 | .put_chars = hvc_udbg_put, |
64 | }; | 64 | }; |