net: nfc: nci: drop nci_uart_ops::recv_buf
There is noone setting nci_uart_ops::recv_buf, so the default one (nci_uart_default_recv_buf) is always used. So drop this hook, move nci_uart_default_recv_buf before the use in nci_uart_tty_receive and remove unused parameter flags. Cc: "David S. Miller" <davem@davemloft.net> Cc: Jakub Kicinski <kuba@kernel.org> Cc: netdev@vger.kernel.org Signed-off-by: Jiri Slaby <jslaby@suse.cz> Link: https://lore.kernel.org/r/20210302062214.29627-16-jslaby@suse.cz Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
9f3698e97d
commit
c2a5a45c02
@@ -430,8 +430,6 @@ struct nci_uart_ops {
|
||||
int (*open)(struct nci_uart *nci_uart);
|
||||
void (*close)(struct nci_uart *nci_uart);
|
||||
int (*recv)(struct nci_uart *nci_uart, struct sk_buff *skb);
|
||||
int (*recv_buf)(struct nci_uart *nci_uart, const u8 *data, char *flags,
|
||||
int count);
|
||||
int (*send)(struct nci_uart *nci_uart, struct sk_buff *skb);
|
||||
void (*tx_start)(struct nci_uart *nci_uart);
|
||||
void (*tx_done)(struct nci_uart *nci_uart);
|
||||
|
||||
Reference in New Issue
Block a user