From: Marek Marczykowski-Górecki Date: Fri, 20 Aug 2021 10:29:05 +0000 (+0200) Subject: ns16550: specify uart param for ns_{read,write}_reg as const X-Git-Tag: archive/raspbian/4.16.0+51-g0941d6cb-1+rpi1~2^2~42^2~272 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3e1dea307b9bd03807f86e2265908039b2f9accf;p=xen.git ns16550: specify uart param for ns_{read,write}_reg as const They don't modify it, after all. Signed-off-by: Marek Marczykowski-Górecki Reviewed-by: Jan Beulich --- diff --git a/xen/drivers/char/ns16550.c b/xen/drivers/char/ns16550.c index 97b85b0225..20da8fd3b4 100644 --- a/xen/drivers/char/ns16550.c +++ b/xen/drivers/char/ns16550.c @@ -108,7 +108,7 @@ struct ns16550_config_param { static void ns16550_delayed_resume(void *data); -static u8 ns_read_reg(struct ns16550 *uart, unsigned int reg) +static u8 ns_read_reg(const struct ns16550 *uart, unsigned int reg) { void __iomem *addr = uart->remapped_io_base + (reg << uart->reg_shift); #ifdef CONFIG_HAS_IOPORTS @@ -126,7 +126,7 @@ static u8 ns_read_reg(struct ns16550 *uart, unsigned int reg) } } -static void ns_write_reg(struct ns16550 *uart, unsigned int reg, u8 c) +static void ns_write_reg(const struct ns16550 *uart, unsigned int reg, u8 c) { void __iomem *addr = uart->remapped_io_base + (reg << uart->reg_shift); #ifdef CONFIG_HAS_IOPORTS