summaryrefslogtreecommitdiffstats
path: root/drivers/nfc/pn533/uart.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2023-12-06 08:37:08 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-08 12:02:38 +0100
commit475fc6e2de6fec0ff3c9a74ddcfd2b52c90adc0d (patch)
tree086b564ef03f2b8922fa137e1a1d4464df0c0ca8 /drivers/nfc/pn533/uart.c
parenttty: serdev: convert to u8 and size_t in serdev_controller_ops (diff)
downloadlinux-475fc6e2de6fec0ff3c9a74ddcfd2b52c90adc0d.tar.xz
linux-475fc6e2de6fec0ff3c9a74ddcfd2b52c90adc0d.zip
tty: serdev: convert to u8 and size_t
Switch character types to u8 and sizes to size_t. To conform to characters/sizes in the rest of the tty layer. This patch converts struct serdev_device_ops hooks and its instantiations. Signed-off-by: "Jiri Slaby (SUSE)" <jirislaby@kernel.org> Cc: Rob Herring <robh@kernel.org> Acked-by: Johan Hovold <johan@kernel.org> Link: https://lore.kernel.org/r/20231206073712.17776-24-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/nfc/pn533/uart.c')
-rw-r--r--drivers/nfc/pn533/uart.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/nfc/pn533/uart.c b/drivers/nfc/pn533/uart.c
index a556acdb947b..2eb5978bd79e 100644
--- a/drivers/nfc/pn533/uart.c
+++ b/drivers/nfc/pn533/uart.c
@@ -203,8 +203,8 @@ static int pn532_uart_rx_is_frame(struct sk_buff *skb)
return 0;
}
-static int pn532_receive_buf(struct serdev_device *serdev,
- const unsigned char *data, size_t count)
+static ssize_t pn532_receive_buf(struct serdev_device *serdev,
+ const u8 *data, size_t count)
{
struct pn532_uart_phy *dev = serdev_device_get_drvdata(serdev);
size_t i;