mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-18 03:06:43 +00:00
USB: spcp8x5: correct handling of CS5 setting
This patch removes an erroneous check of CSIZE, which made it impossible to set CS5. Compiles clean, but couldn't test against hardware. Signed-off-by: Colin Leitner <colin.leitner@gmail.com> Signed-off-by: Johan Hovold <jhovold@gmail.com> Cc: stable <stable@vger.kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
471e42ad14
commit
711fbdfbf2
@ -348,7 +348,6 @@ static void spcp8x5_set_termios(struct tty_struct *tty,
|
||||
}
|
||||
|
||||
/* Set Data Length : 00:5bit, 01:6bit, 10:7bit, 11:8bit */
|
||||
if (cflag & CSIZE) {
|
||||
switch (cflag & CSIZE) {
|
||||
case CS5:
|
||||
buf[1] |= SET_UART_FORMAT_SIZE_5;
|
||||
@ -364,7 +363,6 @@ static void spcp8x5_set_termios(struct tty_struct *tty,
|
||||
buf[1] |= SET_UART_FORMAT_SIZE_8;
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/* Set Stop bit2 : 0:1bit 1:2bit */
|
||||
buf[1] |= (cflag & CSTOPB) ? SET_UART_FORMAT_STOP_2 :
|
||||
|
Loading…
x
Reference in New Issue
Block a user