projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
combined
(merge:
1852448
8093077
)
Merge branch 'smsc47b397-new-id' into release
author
Mark M. Hoffman
<
[email protected]
>
Thu, 1 May 2008 11:33:17 +0000
(07:33 -0400)
committer
Mark M. Hoffman
<
[email protected]
>
Thu, 1 May 2008 11:33:17 +0000
(07:33 -0400)
1
2
drivers/hwmon/smsc47b397.c
patch
|
diff1
|
diff2
|
blob
|
history
diff --cc
drivers/hwmon/smsc47b397.c
index f61d8f4185b243efcf7bd3fb0f10fa6284dde6d2,54187bf25d34e695f8b82e6d5db388094e7ed440..eb03544c731ca47dd94c6d7d940b3f66a43dbcdd
---
1
/
drivers/hwmon/smsc47b397.c
---
2
/
drivers/hwmon/smsc47b397.c
+++ b/
drivers/hwmon/smsc47b397.c
@@@
-335,11
-331,23
+335,23
@@@
exit
static int __init smsc47b397_find(unsigned short *addr)
{
u8 id, rev;
+ char *name;
superio_enter();
- id = superio_inb(SUPERIO_REG_DEVID);
+ id =
force_id ? force_id :
superio_inb(SUPERIO_REG_DEVID);
- if ((id != 0x6f) && (id != 0x81) && (id != 0x85)) {
+ switch(id) {
+ case 0x81:
+ name = "SCH5307-NS";
+ break;
+ case 0x6f:
+ name = "LPC47B397-NC";
+ break;
+ case 0x85:
+ case 0x8c:
+ name = "SCH5317";
+ break;
+ default:
superio_exit();
return -ENODEV;
}