summaryrefslogtreecommitdiff
path: root/drivers/iio/chemical/scd30_serial.c
diff options
context:
space:
mode:
authorJiri Slaby (SUSE) <jirislaby@kernel.org>2023-12-06 10:37:08 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-08 14:02:38 +0300
commit475fc6e2de6fec0ff3c9a74ddcfd2b52c90adc0d (patch)
tree086b564ef03f2b8922fa137e1a1d4464df0c0ca8 /drivers/iio/chemical/scd30_serial.c
parentf2470d2bc4327c2c1a604c6e247442dbb14c90c5 (diff)
downloadlinux-475fc6e2de6fec0ff3c9a74ddcfd2b52c90adc0d.tar.xz
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/iio/chemical/scd30_serial.c')
-rw-r--r--drivers/iio/chemical/scd30_serial.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/iio/chemical/scd30_serial.c b/drivers/iio/chemical/scd30_serial.c
index 3c519103d30b..a47654591e55 100644
--- a/drivers/iio/chemical/scd30_serial.c
+++ b/drivers/iio/chemical/scd30_serial.c
@@ -174,13 +174,13 @@ static int scd30_serdev_command(struct scd30_state *state, enum scd30_cmd cmd, u
return 0;
}
-static int scd30_serdev_receive_buf(struct serdev_device *serdev,
- const unsigned char *buf, size_t size)
+static ssize_t scd30_serdev_receive_buf(struct serdev_device *serdev,
+ const u8 *buf, size_t size)
{
struct iio_dev *indio_dev = serdev_device_get_drvdata(serdev);
struct scd30_serdev_priv *priv;
struct scd30_state *state;
- int num;
+ size_t num;
if (!indio_dev)
return 0;