Commit 66b53cb7 authored by Petre Rodan's avatar Petre Rodan Committed by Jonathan Cameron

iio: pressure: hsc030pa: use signed type to hold div_64() result

Use signed type to variable holding the result given by div_s64().
Signed-off-by: default avatarPetre Rodan <petre.rodan@subdimension.ro>
Link: https://lore.kernel.org/r/20240211075645.28777-3-petre.rodan@subdimension.roSigned-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
parent 158b48c8
...@@ -406,7 +406,7 @@ int hsc_common_probe(struct device *dev, hsc_recv_fn recv) ...@@ -406,7 +406,7 @@ int hsc_common_probe(struct device *dev, hsc_recv_fn recv)
struct hsc_data *hsc; struct hsc_data *hsc;
struct iio_dev *indio_dev; struct iio_dev *indio_dev;
const char *triplet; const char *triplet;
u64 tmp; s64 tmp;
int ret; int ret;
indio_dev = devm_iio_device_alloc(dev, sizeof(*hsc)); indio_dev = devm_iio_device_alloc(dev, sizeof(*hsc));
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment