aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty
diff options
context:
space:
mode:
authorFrederik Völkel <frederik.voelkel@fau.de>2015-12-11 05:36:04 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-12-13 22:59:48 -0500
commit2ababf9e791180a997ab367dfa97c1a7085bd170 (patch)
treeef7064f24f5b95f487755a8b867b80584191d55f /drivers/tty
parente836ed7a2f549b605d10d5ff7b2ea72f2f024d99 (diff)
drivers: tty: 68328serial.c: Fix "foo * bar" should be "foo *bar"
This patch fixes checkpatch errors "foo * bar" should be "foo *bar". Signed-off-by: Frederik Völkel <frederik.voelkel@fau.de> Signed-off-by: Lukas Braun <lukas.braun@fau.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty')
-rw-r--r--drivers/tty/serial/68328serial.c28
1 files changed, 14 insertions, 14 deletions
diff --git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328serial.c
index b6d7230c2086..8d58517232ef 100644
--- a/drivers/tty/serial/68328serial.c
+++ b/drivers/tty/serial/68328serial.c
@@ -659,9 +659,9 @@ static void rs_flush_chars(struct tty_struct *tty)
659 local_irq_restore(flags); 659 local_irq_restore(flags);
660} 660}
661 661
662extern void console_printn(const char * b, int count); 662extern void console_printn(const char *b, int count);
663 663
664static int rs_write(struct tty_struct * tty, 664static int rs_write(struct tty_struct *tty,
665 const unsigned char *buf, int count) 665 const unsigned char *buf, int count)
666{ 666{
667 int c, total = 0; 667 int c, total = 0;
@@ -767,7 +767,7 @@ static void rs_flush_buffer(struct tty_struct *tty)
767 * incoming characters should be throttled. 767 * incoming characters should be throttled.
768 * ------------------------------------------------------------ 768 * ------------------------------------------------------------
769 */ 769 */
770static void rs_throttle(struct tty_struct * tty) 770static void rs_throttle(struct tty_struct *tty)
771{ 771{
772 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data; 772 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data;
773 773
@@ -780,7 +780,7 @@ static void rs_throttle(struct tty_struct * tty)
780 /* Turn off RTS line (do this atomic) */ 780 /* Turn off RTS line (do this atomic) */
781} 781}
782 782
783static void rs_unthrottle(struct tty_struct * tty) 783static void rs_unthrottle(struct tty_struct *tty)
784{ 784{
785 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data; 785 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data;
786 786
@@ -803,8 +803,8 @@ static void rs_unthrottle(struct tty_struct * tty)
803 * ------------------------------------------------------------ 803 * ------------------------------------------------------------
804 */ 804 */
805 805
806static int get_serial_info(struct m68k_serial * info, 806static int get_serial_info(struct m68k_serial *info,
807 struct serial_struct * retinfo) 807 struct serial_struct *retinfo)
808{ 808{
809 struct serial_struct tmp; 809 struct serial_struct tmp;
810 810
@@ -827,7 +827,7 @@ static int get_serial_info(struct m68k_serial * info,
827} 827}
828 828
829static int set_serial_info(struct m68k_serial *info, struct tty_struct *tty, 829static int set_serial_info(struct m68k_serial *info, struct tty_struct *tty,
830 struct serial_struct * new_info) 830 struct serial_struct *new_info)
831{ 831{
832 struct tty_port *port = &info->tport; 832 struct tty_port *port = &info->tport;
833 struct serial_struct new_serial; 833 struct serial_struct new_serial;
@@ -883,7 +883,7 @@ check_and_exit:
883 * transmit holding register is empty. This functionality 883 * transmit holding register is empty. This functionality
884 * allows an RS485 driver to be written in user space. 884 * allows an RS485 driver to be written in user space.
885 */ 885 */
886static int get_lsr_info(struct m68k_serial * info, unsigned int *value) 886static int get_lsr_info(struct m68k_serial *info, unsigned int *value)
887{ 887{
888#ifdef CONFIG_SERIAL_68328_RTS_CTS 888#ifdef CONFIG_SERIAL_68328_RTS_CTS
889 m68328_uart *uart = &uart_addr[info->line]; 889 m68328_uart *uart = &uart_addr[info->line];
@@ -904,7 +904,7 @@ static int get_lsr_info(struct m68k_serial * info, unsigned int *value)
904/* 904/*
905 * This routine sends a break character out the serial port. 905 * This routine sends a break character out the serial port.
906 */ 906 */
907static void send_break(struct m68k_serial * info, unsigned int duration) 907static void send_break(struct m68k_serial *info, unsigned int duration)
908{ 908{
909 m68328_uart *uart = &uart_addr[info->line]; 909 m68328_uart *uart = &uart_addr[info->line];
910 unsigned long flags; 910 unsigned long flags;
@@ -922,7 +922,7 @@ static void send_break(struct m68k_serial * info, unsigned int duration)
922static int rs_ioctl(struct tty_struct *tty, 922static int rs_ioctl(struct tty_struct *tty,
923 unsigned int cmd, unsigned long arg) 923 unsigned int cmd, unsigned long arg)
924{ 924{
925 struct m68k_serial * info = (struct m68k_serial *)tty->driver_data; 925 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data;
926 int retval; 926 int retval;
927 927
928 if (serial_paranoia_check(info, tty->name, "rs_ioctl")) 928 if (serial_paranoia_check(info, tty->name, "rs_ioctl"))
@@ -992,9 +992,9 @@ static void rs_set_termios(struct tty_struct *tty, struct ktermios *old_termios)
992 * that IRQ if nothing is left in the chain. 992 * that IRQ if nothing is left in the chain.
993 * ------------------------------------------------------------ 993 * ------------------------------------------------------------
994 */ 994 */
995static void rs_close(struct tty_struct *tty, struct file * filp) 995static void rs_close(struct tty_struct *tty, struct file *filp)
996{ 996{
997 struct m68k_serial * info = (struct m68k_serial *)tty->driver_data; 997 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data;
998 struct tty_port *port = &info->tport; 998 struct tty_port *port = &info->tport;
999 m68328_uart *uart = &uart_addr[info->line]; 999 m68328_uart *uart = &uart_addr[info->line];
1000 unsigned long flags; 1000 unsigned long flags;
@@ -1079,7 +1079,7 @@ static void rs_close(struct tty_struct *tty, struct file * filp)
1079 */ 1079 */
1080void rs_hangup(struct tty_struct *tty) 1080void rs_hangup(struct tty_struct *tty)
1081{ 1081{
1082 struct m68k_serial * info = (struct m68k_serial *)tty->driver_data; 1082 struct m68k_serial *info = (struct m68k_serial *)tty->driver_data;
1083 1083
1084 if (serial_paranoia_check(info, tty->name, "rs_hangup")) 1084 if (serial_paranoia_check(info, tty->name, "rs_hangup"))
1085 return; 1085 return;
@@ -1098,7 +1098,7 @@ void rs_hangup(struct tty_struct *tty)
1098 * the IRQ chain. It also performs the serial-specific 1098 * the IRQ chain. It also performs the serial-specific
1099 * initialization for the tty structure. 1099 * initialization for the tty structure.
1100 */ 1100 */
1101int rs_open(struct tty_struct *tty, struct file * filp) 1101int rs_open(struct tty_struct *tty, struct file *filp)
1102{ 1102{
1103 struct m68k_serial *info; 1103 struct m68k_serial *info;
1104 int retval; 1104 int retval;