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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
0d08abb983
commit
f3fb7367af
@ -50,10 +50,8 @@ static u32 goldfish_tty_line_count = 8;
|
|||||||
static u32 goldfish_tty_current_line_count;
|
static u32 goldfish_tty_current_line_count;
|
||||||
static struct goldfish_tty *goldfish_ttys;
|
static struct goldfish_tty *goldfish_ttys;
|
||||||
|
|
||||||
static void do_rw_io(struct goldfish_tty *qtty,
|
static void do_rw_io(struct goldfish_tty *qtty, unsigned long address,
|
||||||
unsigned long address,
|
size_t count, bool is_write)
|
||||||
unsigned int count,
|
|
||||||
bool is_write)
|
|
||||||
{
|
{
|
||||||
unsigned long irq_flags;
|
unsigned long irq_flags;
|
||||||
void __iomem *base = qtty->base;
|
void __iomem *base = qtty->base;
|
||||||
@ -73,10 +71,8 @@ static void do_rw_io(struct goldfish_tty *qtty,
|
|||||||
spin_unlock_irqrestore(&qtty->lock, irq_flags);
|
spin_unlock_irqrestore(&qtty->lock, irq_flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void goldfish_tty_rw(struct goldfish_tty *qtty,
|
static void goldfish_tty_rw(struct goldfish_tty *qtty, unsigned long addr,
|
||||||
unsigned long addr,
|
size_t count, bool is_write)
|
||||||
unsigned int count,
|
|
||||||
bool is_write)
|
|
||||||
{
|
{
|
||||||
dma_addr_t dma_handle;
|
dma_addr_t dma_handle;
|
||||||
enum dma_data_direction dma_dir;
|
enum dma_data_direction dma_dir;
|
||||||
@ -125,7 +121,7 @@ static void goldfish_tty_rw(struct goldfish_tty *qtty,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void goldfish_tty_do_write(int line, const u8 *buf, unsigned int count)
|
static void goldfish_tty_do_write(int line, const u8 *buf, size_t count)
|
||||||
{
|
{
|
||||||
struct goldfish_tty *qtty = &goldfish_ttys[line];
|
struct goldfish_tty *qtty = &goldfish_ttys[line];
|
||||||
|
|
||||||
@ -136,7 +132,7 @@ static irqreturn_t goldfish_tty_interrupt(int irq, void *dev_id)
|
|||||||
{
|
{
|
||||||
struct goldfish_tty *qtty = dev_id;
|
struct goldfish_tty *qtty = dev_id;
|
||||||
void __iomem *base = qtty->base;
|
void __iomem *base = qtty->base;
|
||||||
unsigned char *buf;
|
u8 *buf;
|
||||||
u32 count;
|
u32 count;
|
||||||
|
|
||||||
count = gf_ioread32(base + GOLDFISH_TTY_REG_BYTES_READY);
|
count = gf_ioread32(base + GOLDFISH_TTY_REG_BYTES_READY);
|
||||||
|
Reference in New Issue
Block a user