Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

serial: liteuart: remove unused uart_ops stubs

Remove stub uart_ops methods that are not called unconditionally
from serial_core.

Signed-off-by: Gabriel Somlo <gsomlo@gmail.com>
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Reviewed-by: Geert Uytterhoeven <geert@linux-m68k.org>
Reviewed-by: Jiri Slaby <jirislaby@kernel.org>
Link: https://lore.kernel.org/r/20221123130500.1030189-4-gsomlo@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Gabriel Somlo and committed by
Greg Kroah-Hartman
38059622 5996b2e3

-17
-17
drivers/tty/serial/liteuart.c
··· 154 154 del_timer(&uart->timer); 155 155 } 156 156 157 - static void liteuart_break_ctl(struct uart_port *port, int break_state) 158 - { 159 - /* LiteUART doesn't support sending break signal */ 160 - } 161 - 162 157 static int liteuart_startup(struct uart_port *port) 163 158 { 164 159 struct liteuart_port *uart = to_liteuart_port(port); ··· 192 197 return "liteuart"; 193 198 } 194 199 195 - static void liteuart_release_port(struct uart_port *port) 196 - { 197 - } 198 - 199 - static int liteuart_request_port(struct uart_port *port) 200 - { 201 - return 0; 202 - } 203 - 204 200 static void liteuart_config_port(struct uart_port *port, int flags) 205 201 { 206 202 /* ··· 218 232 .stop_tx = liteuart_stop_tx, 219 233 .start_tx = liteuart_start_tx, 220 234 .stop_rx = liteuart_stop_rx, 221 - .break_ctl = liteuart_break_ctl, 222 235 .startup = liteuart_startup, 223 236 .shutdown = liteuart_shutdown, 224 237 .set_termios = liteuart_set_termios, 225 238 .type = liteuart_type, 226 - .release_port = liteuart_release_port, 227 - .request_port = liteuart_request_port, 228 239 .config_port = liteuart_config_port, 229 240 .verify_port = liteuart_verify_port, 230 241 };