Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 54573c4a authored by Julia Lawall's avatar Julia Lawall Committed by Greg Kroah-Hartman
Browse files

xen/hvc: constify hv_ops structures



These hv_ops structures are never modified, so declare them as const.  Most
were const already.

Done with the help of Coccinelle.

Signed-off-by: default avatarJulia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 98cb4ab0
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -162,7 +162,7 @@ static int domU_read_console(uint32_t vtermno, char *buf, int len)
	return recv;
}

static struct hv_ops domU_hvc_ops = {
static const struct hv_ops domU_hvc_ops = {
	.get_chars = domU_read_console,
	.put_chars = domU_write_console,
	.notifier_add = notifier_add_irq,
@@ -188,7 +188,7 @@ static int dom0_write_console(uint32_t vtermno, const char *str, int len)
	return len;
}

static struct hv_ops dom0_hvc_ops = {
static const struct hv_ops dom0_hvc_ops = {
	.get_chars = dom0_read_console,
	.put_chars = dom0_write_console,
	.notifier_add = notifier_add_irq,