aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serdev/serdev-ttyport.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <[email protected]>2023-12-06 07:37:07 +0000
committerGreg Kroah-Hartman <[email protected]>2023-12-08 11:02:38 +0000
commitf2470d2bc4327c2c1a604c6e247442dbb14c90c5 (patch)
tree8b697866bb57d10a0e602b7bbf4815c9a0727abc /drivers/tty/serdev/serdev-ttyport.c
parenttty: nozomi: convert to u8 and size_t (diff)
downloadkernel-f2470d2bc4327c2c1a604c6e247442dbb14c90c5.tar.gz
kernel-f2470d2bc4327c2c1a604c6e247442dbb14c90c5.zip
tty: serdev: convert to u8 and size_t in serdev_controller_ops
Switch character types to u8 and sizes to size_t. To conform to characters/sizes in the rest of the tty layer. In this patch, only struct serdev_controller_ops hooks. The rest will follow. Signed-off-by: "Jiri Slaby (SUSE)" <[email protected]> Cc: Rob Herring <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/tty/serdev/serdev-ttyport.c')
-rw-r--r--drivers/tty/serdev/serdev-ttyport.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/serdev/serdev-ttyport.c b/drivers/tty/serdev/serdev-ttyport.c
index c5381fe15e1c..e94e090cf0a1 100644
--- a/drivers/tty/serdev/serdev-ttyport.c
+++ b/drivers/tty/serdev/serdev-ttyport.c
@@ -74,7 +74,7 @@ static const struct tty_port_client_operations client_ops = {
* Callback functions from the serdev core.
*/
-static int ttyport_write_buf(struct serdev_controller *ctrl, const unsigned char *data, size_t len)
+static ssize_t ttyport_write_buf(struct serdev_controller *ctrl, const u8 *data, size_t len)
{
struct serport *serport = serdev_controller_get_drvdata(ctrl);
struct tty_struct *tty = serport->tty;