]> Pileus Git - ~andy/linux/blobdiff - drivers/hwmon/w83627hf.c
hwmon: (it87) Discard a dead e-mail address
[~andy/linux] / drivers / hwmon / w83627hf.c
index 879d0a6544ccfb865ef0c6ddeead32e542f3a0bd..181f4e8590b1cc3eaf5a21dd01fa1b9e9bfa87ae 100644 (file)
@@ -75,6 +75,10 @@ static int init = 1;
 module_param(init, bool, 0);
 MODULE_PARM_DESC(init, "Set to zero to bypass chip initialization");
 
+static unsigned short force_id;
+module_param(force_id, ushort, 0);
+MODULE_PARM_DESC(force_id, "Override the detected device ID");
+
 /* modified from kernel/include/traps.c */
 static int REG;                /* The register to read/write */
 #define        DEV     0x07    /* Register: Logical device select */
@@ -1014,7 +1018,7 @@ static int __init w83627hf_find(int sioaddr, unsigned short *addr,
        VAL = sioaddr + 1;
 
        superio_enter();
-       val= superio_inb(DEVID);
+       val = force_id ? force_id : superio_inb(DEVID);
        switch (val) {
        case W627_DEVID:
                sio_data->type = w83627hf;