On Fri Jan 23 13:14:58 2026 +0100, Martin Tůma wrote:
> The "magic" temperature formula must be computed using a signed integer for
> negative temperatures to work properly.
>
> Signed-off-by: Martin Tůma <[email protected]>
> Signed-off-by: Hans Verkuil <[email protected]>
Patch committed.
Thanks,
Hans Verkuil
drivers/media/pci/mgb4/mgb4_core.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
---
diff --git a/drivers/media/pci/mgb4/mgb4_core.c
b/drivers/media/pci/mgb4/mgb4_core.c
index a7351a469386..d23d854581c5 100644
--- a/drivers/media/pci/mgb4/mgb4_core.c
+++ b/drivers/media/pci/mgb4/mgb4_core.c
@@ -84,7 +84,8 @@ static int temp_read(struct device *dev, enum
hwmon_sensor_types type, u32 attr,
int channel, long *val)
{
struct mgb4_dev *mgbdev = dev_get_drvdata(dev);
- u32 val10, raw;
+ u32 raw;
+ int val10;
if (type != hwmon_temp || attr != hwmon_temp_input)
return -EOPNOTSUPP;
_______________________________________________
linuxtv-commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]