summaryrefslogtreecommitdiffstats
path: root/drivers/iio/chemical/pms7003.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/iio/chemical/pms7003.c')
-rw-r--r--drivers/iio/chemical/pms7003.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/iio/chemical/pms7003.c b/drivers/iio/chemical/pms7003.c
index b5cf15a515..43025866d5 100644
--- a/drivers/iio/chemical/pms7003.c
+++ b/drivers/iio/chemical/pms7003.c
@@ -211,8 +211,8 @@ static bool pms7003_frame_is_okay(struct pms7003_frame *frame)
return checksum == pms7003_calc_checksum(frame);
}
-static ssize_t pms7003_receive_buf(struct serdev_device *serdev, const u8 *buf,
- size_t size)
+static size_t pms7003_receive_buf(struct serdev_device *serdev, const u8 *buf,
+ size_t size)
{
struct iio_dev *indio_dev = serdev_device_get_drvdata(serdev);
struct pms7003_state *state = iio_priv(indio_dev);