mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-09 16:12:21 +00:00
serial: 8250: introduce get_divisor() and set_divisor() hook
Add these two hooks so that they can be overridden with driver specific implementations. Signed-off-by: Jisheng Zhang <Jisheng.Zhang@synaptics.com> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
16777ecd1b
commit
0238d2b4a4
3 changed files with 34 additions and 4 deletions
|
@ -127,6 +127,13 @@ struct uart_port {
|
|||
struct ktermios *);
|
||||
unsigned int (*get_mctrl)(struct uart_port *);
|
||||
void (*set_mctrl)(struct uart_port *, unsigned int);
|
||||
unsigned int (*get_divisor)(struct uart_port *,
|
||||
unsigned int baud,
|
||||
unsigned int *frac);
|
||||
void (*set_divisor)(struct uart_port *,
|
||||
unsigned int baud,
|
||||
unsigned int quot,
|
||||
unsigned int quot_frac);
|
||||
int (*startup)(struct uart_port *port);
|
||||
void (*shutdown)(struct uart_port *port);
|
||||
void (*throttle)(struct uart_port *port);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue