aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/hwmon/it87.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/hwmon/it87.c')
-rw-r--r--drivers/hwmon/it87.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/drivers/hwmon/it87.c b/drivers/hwmon/it87.c
index ad6c8a319903..0932fd53352a 100644
--- a/drivers/hwmon/it87.c
+++ b/drivers/hwmon/it87.c
@@ -52,6 +52,10 @@
52 52
53enum chips { it87, it8712, it8716, it8718 }; 53enum chips { it87, it8712, it8716, it8718 };
54 54
55static unsigned short force_id;
56module_param(force_id, ushort, 0);
57MODULE_PARM_DESC(force_id, "Override the detected device ID");
58
55static struct platform_device *pdev; 59static struct platform_device *pdev;
56 60
57#define REG 0x2e /* The register to read/write */ 61#define REG 0x2e /* The register to read/write */
@@ -906,7 +910,7 @@ static int __init it87_find(unsigned short *address,
906 u16 chip_type; 910 u16 chip_type;
907 911
908 superio_enter(); 912 superio_enter();
909 chip_type = superio_inw(DEVID); 913 chip_type = force_id ? force_id : superio_inw(DEVID);
910 914
911 switch (chip_type) { 915 switch (chip_type) {
912 case IT8705F_DEVID: 916 case IT8705F_DEVID: