Skip to contentSkip to conversation

hwmon update against v2.6.23-rc5-git1

PATCH New Mark M. Hoffman 1 participant 1 message Sep 9, 2007

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 hwmon update against v2.6.23-rc5-git1

Hi Linus:

Please pull from:
git://lm-sensors.org/kernel/mhoffman/hwmon-2.6.git release

You will get one patch (below), which fixes a potential regression from v2.6.22 (although AFAIK there have been no reports about this one.)

commit 15bde2f1a8e819213f54314505a5a0509673109b

Author: Jean Delvare <[email protected]>
Date:   Wed Aug 29 10:39:57 2007 +0200

hwmon: End of I/O region off-by-one

Fix an off-by-one error in the I/O region declaration of two hardware monitoring drivers (lm78 and w83781d.) We were requesting one extra port at the end of the region.

drivers/hwmon/lm78.c +1 -1
index 565c4e6..6eea347 100644
@@ -882,7 +882,7 @@ static int __init lm78_isa_device_add(unsigned short address)
 {
        struct resource res = {
                .start  = address,
-               .end    = address + LM78_EXTENT,
+               .end    = address + LM78_EXTENT - 1,
                .name   = "lm78",
                .flags  = IORESOURCE_IO,
        };
drivers/hwmon/w83781d.c +1 -1
index c95909c..dcc941a 100644
@@ -1746,7 +1746,7 @@ w83781d_isa_device_add(unsigned short address)
 {
        struct resource res = {
                .start  = address,
-               .end    = address + W83781D_EXTENT,
+               .end    = address + W83781D_EXTENT - 1,
                .name   = "w83781d",
                .flags  = IORESOURCE_IO,
        };
Signature · 8 lines
Mark M. Hoffman
[email protected]


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors