aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/ti-st/st_core.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/misc/ti-st/st_core.c b/drivers/misc/ti-st/st_core.c
index 486117f72c9f..cb98a7da98ef 100644
--- a/drivers/misc/ti-st/st_core.c
+++ b/drivers/misc/ti-st/st_core.c
@@ -744,8 +744,8 @@ static void st_tty_close(struct tty_struct *tty)
744 pr_debug("%s: done ", __func__); 744 pr_debug("%s: done ", __func__);
745} 745}
746 746
747static void st_tty_receive(struct tty_struct *tty, const unsigned char *data, 747static unsigned int st_tty_receive(struct tty_struct *tty,
748 char *tty_flags, int count) 748 const unsigned char *data, char *tty_flags, int count)
749{ 749{
750#ifdef VERBOSE 750#ifdef VERBOSE
751 print_hex_dump(KERN_DEBUG, ">in>", DUMP_PREFIX_NONE, 751 print_hex_dump(KERN_DEBUG, ">in>", DUMP_PREFIX_NONE,
@@ -758,6 +758,8 @@ static void st_tty_receive(struct tty_struct *tty, const unsigned char *data,
758 */ 758 */
759 st_recv(tty->disc_data, data, count); 759 st_recv(tty->disc_data, data, count);
760 pr_debug("done %s", __func__); 760 pr_debug("done %s", __func__);
761
762 return count;
761} 763}
762 764
763/* wake-up function called in from the TTY layer 765/* wake-up function called in from the TTY layer