Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tty: goldfish: convert to u8 and size_t

Switch character types to u8 and sizes to size_t. To conform to
characters/sizes in the rest of the tty layer.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20231206073712.17776-12-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
f3fb7367 0d08abb9

+6 -10
+6 -10
drivers/tty/goldfish.c
··· 50 50 static u32 goldfish_tty_current_line_count; 51 51 static struct goldfish_tty *goldfish_ttys; 52 52 53 - static void do_rw_io(struct goldfish_tty *qtty, 54 - unsigned long address, 55 - unsigned int count, 56 - bool is_write) 53 + static void do_rw_io(struct goldfish_tty *qtty, unsigned long address, 54 + size_t count, bool is_write) 57 55 { 58 56 unsigned long irq_flags; 59 57 void __iomem *base = qtty->base; ··· 71 73 spin_unlock_irqrestore(&qtty->lock, irq_flags); 72 74 } 73 75 74 - static void goldfish_tty_rw(struct goldfish_tty *qtty, 75 - unsigned long addr, 76 - unsigned int count, 77 - bool is_write) 76 + static void goldfish_tty_rw(struct goldfish_tty *qtty, unsigned long addr, 77 + size_t count, bool is_write) 78 78 { 79 79 dma_addr_t dma_handle; 80 80 enum dma_data_direction dma_dir; ··· 121 125 } 122 126 } 123 127 124 - static void goldfish_tty_do_write(int line, const u8 *buf, unsigned int count) 128 + static void goldfish_tty_do_write(int line, const u8 *buf, size_t count) 125 129 { 126 130 struct goldfish_tty *qtty = &goldfish_ttys[line]; 127 131 ··· 132 136 { 133 137 struct goldfish_tty *qtty = dev_id; 134 138 void __iomem *base = qtty->base; 135 - unsigned char *buf; 139 + u8 *buf; 136 140 u32 count; 137 141 138 142 count = gf_ioread32(base + GOLDFISH_TTY_REG_BYTES_READY);