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
This commit is contained in:
@@ -163,7 +163,7 @@ static void hvc_handle_input(struct virtqueue *vq)
|
||||
}
|
||||
|
||||
/* The operations for the console. */
|
||||
static struct hv_ops hv_ops = {
|
||||
static const struct hv_ops hv_ops = {
|
||||
.get_chars = get_chars,
|
||||
.put_chars = put_chars,
|
||||
.notifier_add = notifier_add_vio,
|
||||
|
Reference in New Issue
Block a user