diff options
| author | Jiri Slaby <[email protected]> | 2021-06-10 09:02:44 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-06-15 12:03:26 +0000 |
| commit | 654ee49b7e0883e660be6e6e20876fc4cbdaadd1 (patch) | |
| tree | 9e14c689a306e390ec13537316ad3e3166062c43 /drivers/usb/class/cdc-acm.c | |
| parent | ipwireless: remove unused ipw_tty::closing (diff) | |
| download | kernel-654ee49b7e0883e660be6e6e20876fc4cbdaadd1.tar.gz kernel-654ee49b7e0883e660be6e6e20876fc4cbdaadd1.zip | |
tty: make tty_get_{char,frame}_size available
Many tty drivers contain code to compute bits count depending on termios
cflags. So extract this code from serial core to two separate tty helper
functions:
* tty_get_char_size -- only size of a character, without flags,
* tty_get_frame_size -- complete size of a frame including flags.
In the next patch, calls to these new functions replace many copies of
this code.
Note that we accept only cflag as a parameter. That's because some
callers like pch_uart_startup or sunsab_console_setup don't have at hand
termios which we could pass around.
Cc: Joe Perches <[email protected]>
Cc: Johan Hovold <[email protected]>
Reviewed-by: Andy Shevchenko <[email protected]>
Signed-off-by: Jiri Slaby <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
