mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 02:01:24 +01:00
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 <marmarek@invisiblethingslab.com> Reviewed-by: Jan Beulich <jbeulich@suse.com>
This commit is contained in:
1 parent
9ee27aa7a2
commit
3e1dea307b
1 file changed
+2
-2
@@ -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
|
||||
|
||||