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

Configure Feed

Select the types of activity you want to include in your feed.

tty: bcm: 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>
Cc: Scott Branden <scott.branden@broadcom.com>
Cc: Broadcom internal kernel review list <bcm-kernel-feedback-list@broadcom.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20231206073712.17776-8-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Jiri Slaby (SUSE) and committed by
Greg Kroah-Hartman
03e5af52 fbdeead9

+2 -2
+2 -2
drivers/misc/bcm-vk/bcm_vk_tty.c
··· 64 64 struct bcm_vk_tty *vktty; 65 65 int card_status; 66 66 int count; 67 - unsigned char c; 68 67 int i; 69 68 int wr; 69 + u8 c; 70 70 71 71 card_status = vkread32(vk, BAR_0, BAR_CARD_STATUS); 72 72 if (BCM_VK_INTF_IS_DOWN(card_status)) ··· 192 192 int index; 193 193 struct bcm_vk *vk; 194 194 struct bcm_vk_tty *vktty; 195 - int i; 195 + size_t i; 196 196 197 197 index = tty->index; 198 198 vk = dev_get_drvdata(tty->dev);