aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/hvc_beat.c
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2009-11-28 12:20:26 +0530
committerRusty Russell <rusty@rustcorp.com.au>2010-02-24 14:22:32 +1030
commit1dff399616a79b8ef5d61ad68f2ef1e1f590b465 (patch)
treeaa463b02bfdabc008a9e62717d25e259585e0f3d /drivers/char/hvc_beat.c
parent971f3390003619ea4ac0b20ee93dfd3209025790 (diff)
downloadkernel_samsung_smdk4412-1dff399616a79b8ef5d61ad68f2ef1e1f590b465.zip
kernel_samsung_smdk4412-1dff399616a79b8ef5d61ad68f2ef1e1f590b465.tar.gz
kernel_samsung_smdk4412-1dff399616a79b8ef5d61ad68f2ef1e1f590b465.tar.bz2
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_beat.c')
-rw-r--r--drivers/char/hvc_beat.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/hvc_beat.c b/drivers/char/hvc_beat.c
index 0afc8b8..6913fc3 100644
--- a/drivers/char/hvc_beat.c
+++ b/drivers/char/hvc_beat.c
@@ -84,7 +84,7 @@ static int hvc_beat_put_chars(uint32_t vtermno, const char *buf, int cnt)
return cnt;
}
-static struct hv_ops hvc_beat_get_put_ops = {
+static const struct hv_ops hvc_beat_get_put_ops = {
.get_chars = hvc_beat_get_chars,
.put_chars = hvc_beat_put_chars,
};