diff options
author | Frederik Völkel <frederik.voelkel@fau.de> | 2015-12-11 05:36:04 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-12-13 22:59:48 -0500 |
commit | 2ababf9e791180a997ab367dfa97c1a7085bd170 (patch) | |
tree | ef7064f24f5b95f487755a8b867b80584191d55f /drivers/tty | |
parent | e836ed7a2f549b605d10d5ff7b2ea72f2f024d99 (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.c | 28 |
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 | ||
662 | extern void console_printn(const char * b, int count); | 662 | extern void console_printn(const char *b, int count); |
663 | 663 | ||
664 | static int rs_write(struct tty_struct * tty, | 664 | static 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 | */ |
770 | static void rs_throttle(struct tty_struct * tty) | 770 | static 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 | ||
783 | static void rs_unthrottle(struct tty_struct * tty) | 783 | static 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 | ||
806 | static int get_serial_info(struct m68k_serial * info, | 806 | static 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 | ||
829 | static int set_serial_info(struct m68k_serial *info, struct tty_struct *tty, | 829 | static 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 | */ |
886 | static int get_lsr_info(struct m68k_serial * info, unsigned int *value) | 886 | static 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 | */ |
907 | static void send_break(struct m68k_serial * info, unsigned int duration) | 907 | static 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) | |||
922 | static int rs_ioctl(struct tty_struct *tty, | 922 | static 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 | */ |
995 | static void rs_close(struct tty_struct *tty, struct file * filp) | 995 | static 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 | */ |
1080 | void rs_hangup(struct tty_struct *tty) | 1080 | void 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 | */ |
1101 | int rs_open(struct tty_struct *tty, struct file * filp) | 1101 | int 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; |