tty: use u8 for flags
authorJiri Slaby (SUSE) <jirislaby@kernel.org>
Thu, 10 Aug 2023 09:14:51 +0000 (11:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 11 Aug 2023 19:12:45 +0000 (21:12 +0200)
This makes all those 'char's an explicit 'u8'. This is part of the
continuing unification of chars and flags to be consistent u8.

This approaches tty_port_default_receive_buf().

Note that we do not change signedness as we compile with
-funsigned-char.

Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org>
Cc: William Hubbs <w.d.hubbs@gmail.com>
Cc: Chris Brannon <chris@the-brannons.com>
Cc: Kirk Reiser <kirk@reisers.ca>
Cc: Samuel Thibault <samuel.thibault@ens-lyon.org>
Cc: Marcel Holtmann <marcel@holtmann.org>
Cc: Johan Hedberg <johan.hedberg@gmail.com>
Cc: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
Cc: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@google.com>
Cc: Jakub Kicinski <kuba@kernel.org>
Cc: Paolo Abeni <pabeni@redhat.com>
Cc: Max Staudt <max@enpas.org>
Cc: Wolfgang Grandegger <wg@grandegger.com>
Cc: Marc Kleine-Budde <mkl@pengutronix.de>
Cc: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Cc: Andreas Koensgen <ajk@comnets.uni-bremen.de>
Cc: Jeremy Kerr <jk@codeconstruct.com.au>
Cc: Matt Johnston <matt@codeconstruct.com.au>
Cc: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Cc: Liam Girdwood <lgirdwood@gmail.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Jaroslav Kysela <perex@perex.cz>
Cc: Takashi Iwai <tiwai@suse.com>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20230810091510.13006-18-jirislaby@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23 files changed:
drivers/accessibility/speakup/spk_ttyio.c
drivers/bluetooth/hci_ldisc.c
drivers/input/serio/serport.c
drivers/misc/ti-st/st_core.c
drivers/net/caif/caif_serial.c
drivers/net/can/can327.c
drivers/net/can/slcan/slcan-core.c
drivers/net/hamradio/6pack.c
drivers/net/hamradio/mkiss.c
drivers/net/mctp/mctp-serial.c
drivers/net/ppp/ppp_async.c
drivers/net/ppp/ppp_synctty.c
drivers/net/slip/slip.c
drivers/tty/n_gsm.c
drivers/tty/n_hdlc.c
drivers/tty/n_tty.c
drivers/tty/tty_buffer.c
drivers/tty/tty_port.c
include/linux/tty_buffer.h
include/linux/tty_flip.h
include/linux/tty_ldisc.h
net/nfc/nci/uart.c
sound/soc/codecs/cx20442.c

index dd683a079c0850440d1581ff8d9d8bf49e3e7830..4c0a6e1f019dbf7745782943f55e2d474d0b8c6c 100644 (file)
@@ -72,7 +72,7 @@ static void spk_ttyio_ldisc_close(struct tty_struct *tty)
 }
 
 static size_t spk_ttyio_receive_buf2(struct tty_struct *tty, const u8 *cp,
-                                    const char *fp, size_t count)
+                                    const u8 *fp, size_t count)
 {
        struct spk_ldisc_data *ldisc_data = tty->disc_data;
        struct spk_synth *synth = ldisc_data->synth;
index 32bef61c59012c7b39161755ae354f1c9e99ff4e..b41071282ce5f51eb5ac1ab24fd5bdb319b5f33b 100644 (file)
@@ -599,7 +599,7 @@ static void hci_uart_tty_wakeup(struct tty_struct *tty)
  * Return Value:    None
  */
 static void hci_uart_tty_receive(struct tty_struct *tty, const u8 *data,
-                                const char *flags, size_t count)
+                                const u8 *flags, size_t count)
 {
        struct hci_uart *hu = tty->disc_data;
 
index 8bf79d39964d9402a57024f8d040b129b4c82feb..5ce8d9f10f3ea5d0ef336a3b26e29556eaa72626 100644 (file)
@@ -115,7 +115,7 @@ static void serport_ldisc_close(struct tty_struct *tty)
  */
 
 static void serport_ldisc_receive(struct tty_struct *tty, const u8 *cp,
-                                 const char *fp, size_t count)
+                                 const u8 *fp, size_t count)
 {
        struct serport *serport = tty->disc_data;
        unsigned long flags;
index 0ce4e46ff1619a05f26c15c2352f955ab64c60dc..4467c5b94ae8c70909ebcd45c1dd764d81bf9251 100644 (file)
@@ -792,7 +792,7 @@ static void st_tty_close(struct tty_struct *tty)
 }
 
 static void st_tty_receive(struct tty_struct *tty, const u8 *data,
-                          const char *tty_flags, size_t count)
+                          const u8 *tty_flags, size_t count)
 {
 #ifdef VERBOSE
        print_hex_dump(KERN_DEBUG, ">in>", DUMP_PREFIX_NONE,
index feda04dbe837794af2354ce20d82f272f454959d..ed3a589def6b1ccd4d94d0468243c87421cf5f5e 100644 (file)
@@ -159,7 +159,7 @@ static inline void debugfs_tx(struct ser_device *ser, const u8 *data, int size)
 #endif
 
 static void ldisc_receive(struct tty_struct *tty, const u8 *data,
-                         const char *flags, size_t count)
+                         const u8 *flags, size_t count)
 {
        struct sk_buff *skb = NULL;
        struct ser_device *ser;
index a054f5fd0d435c10f10113ea236b201d79c45afb..24af639610309dd2a3372151782b8c9a32306306 100644 (file)
@@ -886,7 +886,7 @@ static bool can327_is_valid_rx_char(u8 c)
  * functions may be called in parallel.
  */
 static void can327_ldisc_rx(struct tty_struct *tty, const u8 *cp,
-                           const char *fp, size_t count)
+                           const u8 *fp, size_t count)
 {
        struct can327 *elm = tty->disc_data;
        size_t first_new_char_idx;
index fe5671dbeb77c45cff67718f01f58e76d4b7a2d6..24c6622d36bd853c3ae422128ff391a0adfb695f 100644 (file)
@@ -775,7 +775,7 @@ static const struct net_device_ops slcan_netdev_ops = {
  * in parallel
  */
 static void slcan_receive_buf(struct tty_struct *tty, const u8 *cp,
-                             const char *fp, size_t count)
+                             const u8 *fp, size_t count)
 {
        struct slcan *sl = tty->disc_data;
 
index 9a1f2a3f3b4fa4e3e6425eaf871fbab9794d823b..6ed38a3cdd734ecaa50afeaa20408001f284664f 100644 (file)
@@ -428,7 +428,7 @@ out:
  * and sent on to some IP layer for further processing.
  */
 static void sixpack_receive_buf(struct tty_struct *tty, const u8 *cp,
-                               const char *fp, size_t count)
+                               const u8 *fp, size_t count)
 {
        struct sixpack *sp;
        int count1;
index 26dbcf49bfa67907353becaa7be062bef4245cf5..5f38a002bd9e3c7970d1d76dc9cbcdeb1a34d519 100644 (file)
@@ -875,7 +875,7 @@ static int mkiss_ioctl(struct tty_struct *tty, unsigned int cmd,
  * and sent on to the AX.25 layer for further processing.
  */
 static void mkiss_receive_buf(struct tty_struct *tty, const u8 *cp,
-                             const char *fp, size_t count)
+                             const u8 *fp, size_t count)
 {
        struct mkiss *ax = mkiss_get(tty);
 
index 5f809a18d30869711b6ca264e7bf83dfece09a33..5bf6fdff701cd64964faf0a4a7b4aac50830a01c 100644 (file)
@@ -391,7 +391,7 @@ static void mctp_serial_push(struct mctp_serial *dev, unsigned char c)
 }
 
 static void mctp_serial_tty_receive_buf(struct tty_struct *tty, const u8 *c,
-                                       const char *f, size_t len)
+                                       const u8 *f, size_t len)
 {
        struct mctp_serial *dev = tty->disc_data;
        int i;
index a661ccdea6ab2128f9023d5f7c68a9b545c25a41..cfd5cb609d99b9dfd1311927633dae1e86a93d23 100644 (file)
@@ -98,7 +98,7 @@ static int ppp_async_send(struct ppp_channel *chan, struct sk_buff *skb);
 static int ppp_async_push(struct asyncppp *ap);
 static void ppp_async_flush_output(struct asyncppp *ap);
 static void ppp_async_input(struct asyncppp *ap, const unsigned char *buf,
-                           const char *flags, int count);
+                           const u8 *flags, int count);
 static int ppp_async_ioctl(struct ppp_channel *chan, unsigned int cmd,
                           unsigned long arg);
 static void ppp_async_process(struct tasklet_struct *t);
@@ -330,7 +330,7 @@ ppp_asynctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
 
 /* May sleep, don't call from interrupt level or with interrupts disabled */
 static void
-ppp_asynctty_receive(struct tty_struct *tty, const u8 *buf, const char *cflags,
+ppp_asynctty_receive(struct tty_struct *tty, const u8 *buf, const u8 *cflags,
                     size_t count)
 {
        struct asyncppp *ap = ap_get(tty);
@@ -819,8 +819,7 @@ process_input_packet(struct asyncppp *ap)
    other ldisc functions but will not be re-entered */
 
 static void
-ppp_async_input(struct asyncppp *ap, const u8 *buf, const char *flags,
-               int count)
+ppp_async_input(struct asyncppp *ap, const u8 *buf, const u8 *flags, int count)
 {
        struct sk_buff *skb;
        int c, i, j, n, s, f;
index 2a5cf6be9591eb1bcef794ae7bfef2f3f9b2fc41..164c9053f73bbf9afc6869bd88ed6a1b6deadade 100644 (file)
@@ -93,7 +93,7 @@ static int ppp_sync_ioctl(struct ppp_channel *chan, unsigned int cmd,
 static void ppp_sync_process(struct tasklet_struct *t);
 static int ppp_sync_push(struct syncppp *ap);
 static void ppp_sync_flush_output(struct syncppp *ap);
-static void ppp_sync_input(struct syncppp *ap, const u8 *buf, const char *flags,
+static void ppp_sync_input(struct syncppp *ap, const u8 *buf, const u8 *flags,
                           int count);
 
 static const struct ppp_channel_ops sync_ops = {
@@ -323,7 +323,7 @@ ppp_synctty_ioctl(struct tty_struct *tty, unsigned int cmd, unsigned long arg)
 
 /* May sleep, don't call from interrupt level or with interrupts disabled */
 static void
-ppp_sync_receive(struct tty_struct *tty, const u8 *buf, const char *cflags,
+ppp_sync_receive(struct tty_struct *tty, const u8 *buf, const u8 *cflags,
                 size_t count)
 {
        struct syncppp *ap = sp_get(tty);
@@ -655,7 +655,7 @@ ppp_sync_flush_output(struct syncppp *ap)
  * frame is considered to be in error and is tossed.
  */
 static void
-ppp_sync_input(struct syncppp *ap, const u8 *buf, const char *flags, int count)
+ppp_sync_input(struct syncppp *ap, const u8 *buf, const u8 *flags, int count)
 {
        struct sk_buff *skb;
        unsigned char *p;
index 7bfa90724e7bb905e2f6580f42efc4ea56692faa..e4280e37fec97fed5e0a793fd4be45f53b7e8bd8 100644 (file)
@@ -685,8 +685,8 @@ static void sl_setup(struct net_device *dev)
  * in parallel
  */
 
-static void slip_receive_buf(struct tty_struct *tty, const u8 *cp,
-                            const char *fp, size_t count)
+static void slip_receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp,
+                            size_t count)
 {
        struct slip *sl = tty->disc_data;
 
index 86d89bbbaa16325bdd888166d0cb06002cf1a22e..a3bd1fc52aedebbfdb7f90dac9d2b02ced11666a 100644 (file)
@@ -3490,7 +3490,7 @@ static void gsmld_detach_gsm(struct tty_struct *tty, struct gsm_mux *gsm)
 }
 
 static void gsmld_receive_buf(struct tty_struct *tty, const u8 *cp,
-                             const char *fp, size_t count)
+                             const u8 *fp, size_t count)
 {
        struct gsm_mux *gsm = tty->disc_data;
        char flags = TTY_NORMAL;
index c86be060baed679a8dd2ab0ffe085d93a93b1de0..9be0932d07e0c905c0dc7390404e3453e4c01375 100644 (file)
@@ -370,7 +370,7 @@ static void n_hdlc_tty_wakeup(struct tty_struct *tty)
  * interpreted as one HDLC frame.
  */
 static void n_hdlc_tty_receive(struct tty_struct *tty, const u8 *data,
-                              const char *flags, size_t count)
+                              const u8 *flags, size_t count)
 {
        register struct n_hdlc *n_hdlc = tty->disc_data;
        register struct n_hdlc_buf *buf;
index d770007e5215edabaefc41e37953a308cf19e5b6..1053b2adb04c835b29fffa9413e6c45b1ff415bf 100644 (file)
@@ -1480,7 +1480,7 @@ n_tty_receive_char_lnext(struct tty_struct *tty, unsigned char c, char flag)
 
 /* Caller must ensure count > 0 */
 static void n_tty_lookahead_flow_ctrl(struct tty_struct *tty, const u8 *cp,
-                                     const unsigned char *fp, size_t count)
+                                     const u8 *fp, size_t count)
 {
        struct n_tty_data *ldata = tty->disc_data;
        unsigned char flag = TTY_NORMAL;
@@ -1520,11 +1520,11 @@ n_tty_receive_buf_real_raw(const struct tty_struct *tty, const u8 *cp,
 }
 
 static void
-n_tty_receive_buf_raw(struct tty_struct *tty, const u8 *cp,
-                     const char *fp, int count)
+n_tty_receive_buf_raw(struct tty_struct *tty, const u8 *cp, const u8 *fp,
+                     int count)
 {
        struct n_tty_data *ldata = tty->disc_data;
-       char flag = TTY_NORMAL;
+       u8 flag = TTY_NORMAL;
 
        while (count--) {
                if (fp)
@@ -1537,8 +1537,8 @@ n_tty_receive_buf_raw(struct tty_struct *tty, const u8 *cp,
 }
 
 static void
-n_tty_receive_buf_closing(struct tty_struct *tty, const u8 *cp,
-                         const char *fp, int count, bool lookahead_done)
+n_tty_receive_buf_closing(struct tty_struct *tty, const u8 *cp, const u8 *fp,
+                         int count, bool lookahead_done)
 {
        char flag = TTY_NORMAL;
 
@@ -1551,11 +1551,11 @@ n_tty_receive_buf_closing(struct tty_struct *tty, const u8 *cp,
 }
 
 static void n_tty_receive_buf_standard(struct tty_struct *tty, const u8 *cp,
-                                      const char *fp, int count,
+                                      const u8 *fp, int count,
                                       bool lookahead_done)
 {
        struct n_tty_data *ldata = tty->disc_data;
-       char flag = TTY_NORMAL;
+       u8 flag = TTY_NORMAL;
 
        while (count--) {
                u8 c = *cp++;
@@ -1589,8 +1589,8 @@ static void n_tty_receive_buf_standard(struct tty_struct *tty, const u8 *cp,
        }
 }
 
-static void __receive_buf(struct tty_struct *tty, const u8 *cp,
-                         const char *fp, int count)
+static void __receive_buf(struct tty_struct *tty, const u8 *cp, const u8 *fp,
+                         int count)
 {
        struct n_tty_data *ldata = tty->disc_data;
        bool preops = I_ISTRIP(tty) || (I_IUCLC(tty) && L_IEXTEN(tty));
@@ -1664,8 +1664,8 @@ static void __receive_buf(struct tty_struct *tty, const u8 *cp,
  *     publishes commit_head or canon_head
  */
 static size_t
-n_tty_receive_buf_common(struct tty_struct *tty, const u8 *cp,
-                        const char *fp, int count, int flow)
+n_tty_receive_buf_common(struct tty_struct *tty, const u8 *cp, const u8 *fp,
+                        int count, int flow)
 {
        struct n_tty_data *ldata = tty->disc_data;
        size_t rcvd = 0;
@@ -1746,13 +1746,13 @@ n_tty_receive_buf_common(struct tty_struct *tty, const u8 *cp,
 }
 
 static void n_tty_receive_buf(struct tty_struct *tty, const u8 *cp,
-                             const char *fp, size_t count)
+                             const u8 *fp, size_t count)
 {
        n_tty_receive_buf_common(tty, cp, fp, count, 0);
 }
 
 static size_t n_tty_receive_buf2(struct tty_struct *tty, const u8 *cp,
-                                const char *fp, size_t count)
+                                const u8 *fp, size_t count)
 {
        return n_tty_receive_buf_common(tty, cp, fp, count, 1);
 }
index 9db42e6ed45bedba28e06c806d1cab87025eb15a..684d099cbe111f98cf5a6a0d0a4f2cd11d54d9f8 100644 (file)
@@ -317,7 +317,7 @@ EXPORT_SYMBOL_GPL(tty_buffer_request_room);
  * Returns: the number added.
  */
 int tty_insert_flip_string_fixed_flag(struct tty_port *port, const u8 *chars,
-               char flag, size_t size)
+                                     u8 flag, size_t size)
 {
        int copied = 0;
        bool flags = flag != TTY_NORMAL;
@@ -356,7 +356,7 @@ EXPORT_SYMBOL(tty_insert_flip_string_fixed_flag);
  * Returns: the number added.
  */
 int tty_insert_flip_string_flags(struct tty_port *port, const u8 *chars,
-               const char *flags, size_t size)
+                                const u8 *flags, size_t size)
 {
        int copied = 0;
 
@@ -390,7 +390,7 @@ EXPORT_SYMBOL(tty_insert_flip_string_flags);
  * Queue a single byte @ch to the tty buffering, with an optional flag. This is
  * the slow path of tty_insert_flip_char().
  */
-int __tty_insert_flip_char(struct tty_port *port, u8 ch, char flag)
+int __tty_insert_flip_char(struct tty_port *port, u8 ch, u8 flag)
 {
        struct tty_buffer *tb;
        bool flags = flag != TTY_NORMAL;
@@ -449,7 +449,7 @@ EXPORT_SYMBOL_GPL(tty_prepare_flip_string);
  *
  * Returns: the number of bytes processed.
  */
-size_t tty_ldisc_receive_buf(struct tty_ldisc *ld, const u8 *p, const char *f,
+size_t tty_ldisc_receive_buf(struct tty_ldisc *ld, const u8 *p, const u8 *f,
                             size_t count)
 {
        if (ld->ops->receive_buf2)
index 7fd171b7c8444379df7cddc775b796e644199a41..624d104bd14507ba906374eaa7548dca796a3451 100644 (file)
@@ -34,7 +34,7 @@ static size_t tty_port_default_receive_buf(struct tty_port *port, const u8 *p,
        if (!ld)
                return 0;
 
-       count = tty_ldisc_receive_buf(ld, p, (char *)f, count);
+       count = tty_ldisc_receive_buf(ld, p, f, count);
 
        tty_ldisc_deref(ld);
 
index 6f2966b15093beeec7ff3d8866bbd9dc8647e1cc..b11cc8c749d23fda0c7c3e346236921ce27ebba8 100644 (file)
@@ -27,9 +27,9 @@ static inline u8 *char_buf_ptr(struct tty_buffer *b, int ofs)
        return ((u8 *)b->data) + ofs;
 }
 
-static inline char *flag_buf_ptr(struct tty_buffer *b, int ofs)
+static inline u8 *flag_buf_ptr(struct tty_buffer *b, int ofs)
 {
-       return (char *)char_buf_ptr(b, ofs) + b->size;
+       return char_buf_ptr(b, ofs) + b->size;
 }
 
 struct tty_bufhead {
index a0fcffeaaa25b5ccce6d901ba0802eb86666b282..d33aed2172c73d2e5f37d99d294a385b9ad217c9 100644 (file)
@@ -11,14 +11,14 @@ int tty_buffer_set_limit(struct tty_port *port, int limit);
 unsigned int tty_buffer_space_avail(struct tty_port *port);
 int tty_buffer_request_room(struct tty_port *port, size_t size);
 int tty_insert_flip_string_flags(struct tty_port *port, const u8 *chars,
-                                const char *flags, size_t size);
+                                const u8 *flags, size_t size);
 int tty_insert_flip_string_fixed_flag(struct tty_port *port, const u8 *chars,
-                                     char flag, size_t size);
+                                     u8 flag, size_t size);
 int tty_prepare_flip_string(struct tty_port *port, u8 **chars, size_t size);
 void tty_flip_buffer_push(struct tty_port *port);
-int __tty_insert_flip_char(struct tty_port *port, u8 ch, char flag);
+int __tty_insert_flip_char(struct tty_port *port, u8 ch, u8 flag);
 
-static inline int tty_insert_flip_char(struct tty_port *port, u8 ch, char flag)
+static inline int tty_insert_flip_char(struct tty_port *port, u8 ch, u8 flag)
 {
        struct tty_buffer *tb = port->buf.tail;
        int change;
@@ -39,7 +39,7 @@ static inline int tty_insert_flip_string(struct tty_port *port,
        return tty_insert_flip_string_fixed_flag(port, chars, TTY_NORMAL, size);
 }
 
-size_t tty_ldisc_receive_buf(struct tty_ldisc *ld, const u8 *p, const char *f,
+size_t tty_ldisc_receive_buf(struct tty_ldisc *ld, const u8 *p, const u8 *f,
                             size_t count);
 
 void tty_buffer_lock_exclusive(struct tty_port *port);
index 5551c4400e5989377cd7be2a2499dce70c68186c..a661d7df5497a70198a468d00fc19413b7233b1b 100644 (file)
@@ -162,7 +162,7 @@ int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
  *     Optional. Can sleep.
  *
  * @receive_buf: [DRV] ``void ()(struct tty_struct *tty, const u8 *cp,
- *                    const char *fp, size_t count)``
+ *                    const u8 *fp, size_t count)``
  *
  *     This function is called by the low-level tty driver to send characters
  *     received by the hardware to the line discpline for processing. @cp is
@@ -192,7 +192,7 @@ int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
  *     Optional.
  *
  * @receive_buf2: [DRV] ``ssize_t ()(struct tty_struct *tty, const u8 *cp,
- *                     const char *fp, size_t count)``
+ *                     const u8 *fp, size_t count)``
  *
  *     This function is called by the low-level tty driver to send characters
  *     received by the hardware to the line discpline for processing. @cp is a
@@ -205,7 +205,7 @@ int ldsem_down_write_nested(struct ld_semaphore *sem, int subclass,
  *     Optional.
  *
  * @lookahead_buf: [DRV] ``void ()(struct tty_struct *tty, const u8 *cp,
- *                      const char *fp, size_t count)``
+ *                      const u8 *fp, size_t count)``
  *
  *     This function is called by the low-level tty driver for characters
  *     not eaten by ->receive_buf() or ->receive_buf2(). It is useful for
@@ -256,13 +256,13 @@ struct tty_ldisc_ops {
         * The following routines are called from below.
         */
        void    (*receive_buf)(struct tty_struct *tty, const u8 *cp,
-                              const char *fp, size_t count);
+                              const u8 *fp, size_t count);
        void    (*write_wakeup)(struct tty_struct *tty);
        void    (*dcd_change)(struct tty_struct *tty, bool active);
        size_t  (*receive_buf2)(struct tty_struct *tty, const u8 *cp,
-                               const char *fp, size_t count);
+                               const u8 *fp, size_t count);
        void    (*lookahead_buf)(struct tty_struct *tty, const u8 *cp,
-                                const unsigned char *fp, size_t count);
+                                const u8 *fp, size_t count);
 
        struct  module *owner;
 };
index c957ca6d2f874ee9eada4d7b38bed6346f5ac496..93775c540287aa96d05e8be1915ab2565e4c7ea3 100644 (file)
@@ -296,7 +296,7 @@ static int nci_uart_default_recv_buf(struct nci_uart *nu, const u8 *data,
  * Return Value:    None
  */
 static void nci_uart_tty_receive(struct tty_struct *tty, const u8 *data,
-                                const char *flags, size_t count)
+                                const u8 *flags, size_t count)
 {
        struct nci_uart *nu = tty->disc_data;
 
index 6d4938e3cbad4cef0807862626dca41787a96130..9d54141a0cd1e91563e68e6aaf335b8172e27517 100644 (file)
@@ -258,7 +258,7 @@ static void v253_hangup(struct tty_struct *tty)
 }
 
 /* Line discipline .receive_buf() */
-static void v253_receive(struct tty_struct *tty, const u8 *cp, const char *fp,
+static void v253_receive(struct tty_struct *tty, const u8 *cp, const u8 *fp,
                         size_t count)
 {
        struct snd_soc_component *component = tty->disc_data;