summaryrefslogtreecommitdiffstats
path: root/drivers/iio
diff options
context:
space:
mode:
authorPetre Rodan <petre.rodan@subdimension.ro>2024-02-11 08:56:33 +0100
committerJonathan Cameron <Jonathan.Cameron@huawei.com>2024-02-19 20:32:22 +0100
commit66b53cb790e794b180cbd4d6bffa34dadbc7ab3d (patch)
treeed61407291d8dd41ace788c8e2c947e607708360 /drivers/iio
parentdt-bindings: iio: pressure: honeywell,hsc030pa.yaml add spi props (diff)
downloadlinux-66b53cb790e794b180cbd4d6bffa34dadbc7ab3d.tar.xz
linux-66b53cb790e794b180cbd4d6bffa34dadbc7ab3d.zip
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: Petre Rodan <petre.rodan@subdimension.ro> Link: https://lore.kernel.org/r/20240211075645.28777-3-petre.rodan@subdimension.ro Signed-off-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Diffstat (limited to 'drivers/iio')
-rw-r--r--drivers/iio/pressure/hsc030pa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iio/pressure/hsc030pa.c b/drivers/iio/pressure/hsc030pa.c
index d6a51f0c335f..7e3f74d53b47 100644
--- a/drivers/iio/pressure/hsc030pa.c
+++ b/drivers/iio/pressure/hsc030pa.c
@@ -406,7 +406,7 @@ int hsc_common_probe(struct device *dev, hsc_recv_fn recv)
struct hsc_data *hsc;
struct iio_dev *indio_dev;
const char *triplet;
- u64 tmp;
+ s64 tmp;
int ret;
indio_dev = devm_iio_device_alloc(dev, sizeof(*hsc));