rc2014: align types
authorAlan Cox <alan@linux.intel.com>
Thu, 14 Mar 2019 14:00:35 +0000 (14:00 +0000)
committerAlan Cox <alan@linux.intel.com>
Thu, 14 Mar 2019 14:00:35 +0000 (14:00 +0000)
Kernel/platform-rc2014/devtty.c
Kernel/platform-rc2014/devtty.h

index fe2761d..f791eec 100644 (file)
@@ -8,10 +8,10 @@
 #include "vfd-term.h"
 #include "vfd-debug.h"
 
-static char tbuf1[TTYSIZ];
-static char tbuf2[TTYSIZ];
-static char tbuf3[TTYSIZ];
-static char tbuf4[TTYSIZ];
+static uint8_t tbuf1[TTYSIZ];
+static uint8_t tbuf2[TTYSIZ];
+static uint8_t tbuf3[TTYSIZ];
+static uint8_t tbuf4[TTYSIZ];
 
 static uint8_t sleeping;
 
@@ -72,7 +72,7 @@ static uint16_t siobaud[] = {
        0x02    /* 115200 */
 };
 
-static void sio2_setup(uint8_t minor, uint8_t flags)
+static void sio2_setup(uint_fast8_t minor, uint_fast8_t flags)
 {
        struct termios *t = &ttydata[minor].termios;
        uint8_t r;
@@ -109,7 +109,7 @@ static void sio2_setup(uint8_t minor, uint8_t flags)
        sio_r[5] = 0x8A | ((t->c_cflag & CSIZE) << 1);
 }
 
-void tty_setup(uint8_t minor, uint8_t flags)
+void tty_setup(uint_fast8_t minor, uint_fast8_t flags)
 {
        if (sio_present || sio1_present) {
                sio2_setup(minor, flags);
@@ -157,7 +157,7 @@ void tty_setup(uint8_t minor, uint8_t flags)
        }
 }
 
-int tty_carrier(uint8_t minor)
+int tty_carrier(uint_fast8_t minor)
 {
         uint8_t c;
         uint8_t port;
@@ -304,7 +304,7 @@ void tty_pollirq_acia(void)
        }
 }
 
-void tty_putc(uint8_t minor, unsigned char c)
+void tty_putc(uint_fast8_t minor, uint_fast8_t c)
 {
 #ifdef CONFIG_VFD_TERM
        if (minor == 1)
@@ -318,7 +318,7 @@ void tty_putc(uint8_t minor, unsigned char c)
        }
 }
 
-void tty_sleeping(uint8_t minor)
+void tty_sleeping(uint_fast8_t minor)
 {
        sleeping |= (1 << minor);
 }
@@ -331,7 +331,7 @@ void tty_sleeping(uint8_t minor)
 
    Need to review this we should be ok as the IRQ handler always leaves
    us pointing at RR0 */
-ttyready_t tty_writeready(uint8_t minor)
+ttyready_t tty_writeready(uint_fast8_t minor)
 {
        irqflags_t irq;
        uint8_t c;
@@ -355,7 +355,7 @@ ttyready_t tty_writeready(uint8_t minor)
        return TTY_READY_SOON;
 }
 
-void tty_data_consumed(uint8_t minor)
+void tty_data_consumed(uint_fast8_t minor)
 {
        used(minor);
 }
@@ -370,7 +370,7 @@ void kputchar(char c)
        tty_putc(TTYDEV - 512, c);
 }
 
-int rctty_open(uint8_t minor, uint16_t flag)
+int rctty_open(uint_fast8_t minor, uint16_t flag)
 {
        if (acia_present && minor != 1) {
                udata.u_error = ENODEV;
index 6bc732c..11c1680 100644 (file)
@@ -1,10 +1,10 @@
 #ifndef __DEVTTY_DOT_H__
 #define __DEVTTY_DOT_H__
 
-void tty_putc(uint8_t minor, unsigned char c);
+void tty_putc(uint_fast8_t minor, uint_fast8_t c);
 void tty_pollirq_sio0(void);
 void tty_pollirq_sio1(void);
 void tty_pollirq_acia(void);
-int rctty_open(uint8_t minor, uint16_t flag);
+int rctty_open(uint_fast8_t minor, uint16_t flag);
 
 #endif