]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
hwmon: (it87) Print proper names for the IT8771E and IT8772E
authorJean Delvare <khali@linux-fr.org>
Sun, 1 Dec 2013 23:53:23 +0000 (10:53 +1100)
committerStephen Rothwell <sfr@canb.auug.org.au>
Sun, 1 Dec 2013 23:53:23 +0000 (10:53 +1100)
The driver prints IT8771F and IT8772F instead of IT8771E and IT8772E
respectively when the driver is loaded. This is a cosmetic only bug
but let's fix it.

Signed-off-by: Jean Delvare <khali@linux-fr.org>
drivers/hwmon/it87.c

index 270fbfa73620fb52ae16e30d144bacfaef3f9a12..e4ea690f1302d51c53b038d014ad691e9d608c59 100644 (file)
@@ -1790,6 +1790,7 @@ static int __init it87_find(unsigned short *address,
        err = 0;
        sio_data->revision = superio_inb(DEVREV) & 0x0f;
        pr_info("Found IT%04x%c chip at 0x%x, revision %d\n", chip_type,
+               chip_type == 0x8771 || chip_type == 0x8772 ||
                chip_type == 0x8603 ? 'E' : 'F', *address,
                sio_data->revision);