diff options
author | Petre Rodan <petre.rodan@subdimension.ro> | 2024-02-11 09:56:33 +0200 |
---|---|---|
committer | Jonathan Cameron <Jonathan.Cameron@huawei.com> | 2024-02-19 19:32:22 +0000 |
commit | 66b53cb790e794b180cbd4d6bffa34dadbc7ab3d (patch) | |
tree | ed61407291d8dd41ace788c8e2c947e607708360 /drivers/iio | |
parent | 158b48c8648b105577179122734280e2c3abe6e1 (diff) | |
download | linux-66b53cb790e794b180cbd4d6bffa34dadbc7ab3d.tar.gz linux-66b53cb790e794b180cbd4d6bffa34dadbc7ab3d.tar.bz2 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.c | 2 |
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)); |