iio: pressure: hsc030pa: use signed type to hold div_64() result
authorPetre Rodan <petre.rodan@subdimension.ro>
Sun, 11 Feb 2024 07:56:33 +0000 (09:56 +0200)
committerJonathan Cameron <Jonathan.Cameron@huawei.com>
Mon, 19 Feb 2024 19:32:22 +0000 (19:32 +0000)
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>
drivers/iio/pressure/hsc030pa.c

index d6a51f0c335fad476a07d97ca63e02b920ce441b..7e3f74d53b471b18f1f8c3e53ea39529b69fe70b 100644 (file)
@@ -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));