Skip to content

Commit c6795fb

Browse files
pnewman-ctigregkh
authored andcommitted
serial: exar: fix checkpach warnings
-Fix several "missing identifier name" warnings from checkpatch in struct exar8250_platform and struct exar8250_board. Example: WARNING: function definition argument <arg> should also have an identifier name - Fix space before tab warning from checkpatch: WARNING: please, no space before tabs + * 0^I^I2 ^IMode bit 0$ Signed-off-by: Parker Newman <[email protected]> Link: https://lore.kernel.org/r/f7fa6c16cb5f2c8c1c7cb7d29f80bc7be53f91ab.1713382717.git.pnewman@connecttech.com Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent f7ce070 commit c6795fb

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

drivers/tty/serial/8250/8250_exar.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
*
148148
* MPIO Port Function
149149
* ---- ---- --------
150-
* 0 2 Mode bit 0
150+
* 0 2 Mode bit 0
151151
* 1 2 Mode bit 1
152152
* 2 2 Terminate bus
153153
* 3 - <reserved>
@@ -229,8 +229,8 @@ struct exar8250_platform {
229229
int (*rs485_config)(struct uart_port *port, struct ktermios *termios,
230230
struct serial_rs485 *rs485);
231231
const struct serial_rs485 *rs485_supported;
232-
int (*register_gpio)(struct pci_dev *, struct uart_8250_port *);
233-
void (*unregister_gpio)(struct uart_8250_port *);
232+
int (*register_gpio)(struct pci_dev *pcidev, struct uart_8250_port *port);
233+
void (*unregister_gpio)(struct uart_8250_port *port);
234234
};
235235

236236
/**
@@ -245,8 +245,8 @@ struct exar8250_board {
245245
unsigned int num_ports;
246246
unsigned int reg_shift;
247247
int (*board_init)(struct exar8250 *priv, struct pci_dev *pcidev);
248-
int (*setup)(struct exar8250 *, struct pci_dev *,
249-
struct uart_8250_port *, int);
248+
int (*setup)(struct exar8250 *priv, struct pci_dev *pcidev,
249+
struct uart_8250_port *port, int idx);
250250
void (*exit)(struct pci_dev *pcidev);
251251
};
252252

0 commit comments

Comments
 (0)