summaryrefslogtreecommitdiffstats
path: root/drivers/iio/chemical/sps30_serial.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/chemical/sps30_serial.c')
-rw-r--r--drivers/iio/chemical/sps30_serial.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/chemical/sps30_serial.c b/drivers/iio/chemical/sps30_serial.c
index 3afa89f8ac..a6dfbe28c9 100644
--- a/drivers/iio/chemical/sps30_serial.c
+++ b/drivers/iio/chemical/sps30_serial.c
@@ -210,8 +210,8 @@ static int sps30_serial_command(struct sps30_state *state, unsigned char cmd,
return rsp_size;
}
-static ssize_t sps30_serial_receive_buf(struct serdev_device *serdev,
- const u8 *buf, size_t size)
+static size_t sps30_serial_receive_buf(struct serdev_device *serdev,
+ const u8 *buf, size_t size)
{
struct iio_dev *indio_dev = dev_get_drvdata(&serdev->dev);
struct sps30_serial_priv *priv;