serial: pic32: remove unused items from the header
authorJiri Slaby <jslaby@suse.cz>
Tue, 3 May 2022 06:31:12 +0000 (08:31 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 May 2022 20:39:16 +0000 (22:39 +0200)
struct pic32_console_opt and its support are unused in pic32. So remove
all that.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20220503063122.20957-2-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/pic32_uart.h

index b15639cc336b4bd876d642d66139826b28671509..a7dba1d57236e5c34a7f3d4e5156c0a8e88b828b 100644 (file)
 #define PIC32_UART_RX          0x30
 #define PIC32_UART_BRG         0x40
 
-struct pic32_console_opt {
-       int baud;
-       int parity;
-       int bits;
-       int flow;
-};
-
 /* struct pic32_sport - pic32 serial port descriptor
  * @port: uart port descriptor
  * @idx: port index
@@ -44,7 +37,6 @@ struct pic32_console_opt {
  **/
 struct pic32_sport {
        struct uart_port port;
-       struct pic32_console_opt opt;
        int idx;
 
        int irq_fault;
@@ -68,7 +60,6 @@ struct pic32_sport {
 };
 #define to_pic32_sport(c) container_of(c, struct pic32_sport, port)
 #define pic32_get_port(sport) (&sport->port)
-#define pic32_get_opt(sport) (&sport->opt)
 #define tx_irq_enabled(sport) (sport->enable_tx_irq)
 
 static inline void pic32_uart_writel(struct pic32_sport *sport,