Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

hwmon: (smsc47b397) add a new chip id (0x8c)

Added a new ID (0x8c) for the smsc47b397 hardware monitor driver.
This ID is used by HP in, at least, their dc7700 line.

Signed-off-by: Craig Kelley <namonai@gmail.com>
Signed-off-by: Mark M. Hoffman <mhoffman@lightlink.com>

authored by

Craig Kelley and committed by
Mark M. Hoffman
80930776 49914084

+14 -3
+14 -3
drivers/hwmon/smsc47b397.c
··· 331 331 static int __init smsc47b397_find(unsigned short *addr) 332 332 { 333 333 u8 id, rev; 334 + char *name; 334 335 335 336 superio_enter(); 336 337 id = superio_inb(SUPERIO_REG_DEVID); 337 338 338 - if ((id != 0x6f) && (id != 0x81) && (id != 0x85)) { 339 + switch(id) { 340 + case 0x81: 341 + name = "SCH5307-NS"; 342 + break; 343 + case 0x6f: 344 + name = "LPC47B397-NC"; 345 + break; 346 + case 0x85: 347 + case 0x8c: 348 + name = "SCH5317"; 349 + break; 350 + default: 339 351 superio_exit(); 340 352 return -ENODEV; 341 353 } ··· 360 348 361 349 printk(KERN_INFO DRVNAME ": found SMSC %s " 362 350 "(base address 0x%04x, revision %u)\n", 363 - id == 0x81 ? "SCH5307-NS" : id == 0x85 ? "SCH5317" : 364 - "LPC47B397-NC", *addr, rev); 351 + name, *addr, rev); 365 352 366 353 superio_exit(); 367 354 return 0;