2024-02-11 07:57:27

by Petre Rodan

[permalink] [raw]
Subject: [PATCH v3 2/6] 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 <[email protected]>
---
v1 -> v2 no changes
v2 -> v3 split cleanup patch into 3 parts, no code changes
drivers/iio/pressure/hsc030pa.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

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));
--
2.43.0