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:
Marek Marczykowski-Górecki authored and Jan Beulich committed 2021-08-20 12:29:05 +02:00
1 parent 9ee27aa7a2
commit 3e1dea307b
1 file changed
+2 -2
+2 -2
View File
@@ -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
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.