summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorJuerg Haefliger <juergh@gmail.com>2007-06-20 15:41:33 -0700
committerMark M. Hoffman <mhoffman@lightlink.com>2007-07-19 14:22:15 -0400
commit2dbbdb35746fdc1a3c3bc5b07f197a90e53b059e (patch)
treebabf7a8bb0ee6b36c5da17ab8961587df391418c /drivers
parentb74f3fdd98c7186930b8ee841dc542dfdba95473 (diff)
downloadop-kernel-dev-2dbbdb35746fdc1a3c3bc5b07f197a90e53b059e.zip
op-kernel-dev-2dbbdb35746fdc1a3c3bc5b07f197a90e53b059e.tar.gz
hwmon: add SCH5317 to smsc47b397 driver
This patch adds the SMSC SCH5317 chip (device ID 0x85) as a supported device to the smsc47b397 driver. Signed-off-by: Juerg Haefliger <juergh at gmail.com> Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/hwmon/smsc47b397.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/hwmon/smsc47b397.c b/drivers/hwmon/smsc47b397.c
index 943abbd..3b65b0e 100644
--- a/drivers/hwmon/smsc47b397.c
+++ b/drivers/hwmon/smsc47b397.c
@@ -333,7 +333,7 @@ static int __init smsc47b397_find(unsigned short *addr)
superio_enter();
id = superio_inb(SUPERIO_REG_DEVID);
- if ((id != 0x6f) && (id != 0x81)) {
+ if ((id != 0x6f) && (id != 0x81) && (id != 0x85)) {
superio_exit();
return -ENODEV;
}
@@ -346,7 +346,8 @@ static int __init smsc47b397_find(unsigned short *addr)
printk(KERN_INFO DRVNAME ": found SMSC %s "
"(base address 0x%04x, revision %u)\n",
- id == 0x81 ? "SCH5307-NS" : "LPC47B397-NC", *addr, rev);
+ id == 0x81 ? "SCH5307-NS" : id == 0x85 ? "SCH5317" :
+ "LPC47B397-NC", *addr, rev);
superio_exit();
return 0;
OpenPOWER on IntegriCloud