diff options
| author | Jisheng Zhang <Jisheng.Zhang@synaptics.com> | 2018-07-11 21:57:00 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-12 11:07:26 -0400 |
| commit | 0238d2b4a4c7bb1b2268e1ef789629878e16ab02 (patch) | |
| tree | 7652740690221e99be068cbeac21a6869fa4724a /include/linux/serial_core.h | |
| parent | 16777ecd1b54d75136f77b2cc25f2cfa75156852 (diff) | |
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>
Diffstat (limited to 'include/linux/serial_core.h')
| -rw-r--r-- | include/linux/serial_core.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/serial_core.h b/include/linux/serial_core.h index 06ea4eeb09ab..406edae44ca3 100644 --- a/include/linux/serial_core.h +++ b/include/linux/serial_core.h | |||
| @@ -127,6 +127,13 @@ struct uart_port { | |||
| 127 | struct ktermios *); | 127 | struct ktermios *); |
| 128 | unsigned int (*get_mctrl)(struct uart_port *); | 128 | unsigned int (*get_mctrl)(struct uart_port *); |
| 129 | void (*set_mctrl)(struct uart_port *, unsigned int); | 129 | void (*set_mctrl)(struct uart_port *, unsigned int); |
| 130 | unsigned int (*get_divisor)(struct uart_port *, | ||
| 131 | unsigned int baud, | ||
| 132 | unsigned int *frac); | ||
| 133 | void (*set_divisor)(struct uart_port *, | ||
| 134 | unsigned int baud, | ||
| 135 | unsigned int quot, | ||
| 136 | unsigned int quot_frac); | ||
| 130 | int (*startup)(struct uart_port *port); | 137 | int (*startup)(struct uart_port *port); |
| 131 | void (*shutdown)(struct uart_port *port); | 138 | void (*shutdown)(struct uart_port *port); |
| 132 | void (*throttle)(struct uart_port *port); | 139 | void (*throttle)(struct uart_port *port); |
