History

Merge tag 'hwmon-for-linus-v4.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging

Pull hwmon fixes from Guenter Roeck: - Export module alias information in g762 and nct7904 to support auto-loading. - Blacklist Dell Studio XPS 8100 in dell-smm to fix fan control problems. * tag 'hwmon-for-linus-v4.2-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/groeck/linux-staging: hwmon: (g762) Export OF module alias information hwmon: (nct7904) Export I2C module alias information hwmon: (dell-smm) Blacklist Dell Studio XPS 8100

Linus Torvalds committed 11 years ago

Commit ea8dc1a2 parents d5a8ab4 de66b383 files · +19 −1Browse files

Unified · Split

3 files
  1. drivers/hwmon/dell-smm-hwmon.c +17 −1
  2. drivers/hwmon/g762.c +1 −0
  3. drivers/hwmon/nct7904.c +1 −0
drivers/hwmon/dell-smm-hwmon.c+17−1
@@ -929,6 +929,21 @@ static struct dmi_system_id i8k_dmi_table[] __initdata = { · 928 unmodified lines
929929
930930 MODULE_DEVICE_TABLE(dmi, i8k_dmi_table);
931931
932+static struct dmi_system_id i8k_blacklist_dmi_table[] __initdata = {
933+ {
934+ /*
935+ * CPU fan speed going up and down on Dell Studio XPS 8100
936+ * for unknown reasons.
937+ */
938+ .ident = "Dell Studio XPS 8100",
939+ .matches = {
940+ DMI_EXACT_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
941+ DMI_EXACT_MATCH(DMI_PRODUCT_NAME, "Studio XPS 8100"),
942+ },
943+ },
944+ { }
945+};
946+
932947 /*
933948 * Probe for the presence of a supported laptop.
934949 */
@@ -940,7 +955,8 @@ static int __init i8k_probe(void) · 5 unmodified lines
940955 /*
941956 * Get DMI information
942957 */
943− if (!dmi_check_system(i8k_dmi_table)) {
958+ if (!dmi_check_system(i8k_dmi_table) ||
959+ dmi_check_system(i8k_blacklist_dmi_table)) {
944960 if (!ignore_dmi && !force)
945961 return -ENODEV;
946962
drivers/hwmon/g762.c+1−0
@@ -582,6 +582,7 @@ static const struct of_device_id g762_dt_match[] = { · 581 unmodified lines
582582 { .compatible = "gmt,g763" },
583583 { },
584584 };
585+MODULE_DEVICE_TABLE(of, g762_dt_match);
585586
586587 /*
587588 * Grab clock (a required property), enable it, get (fixed) clock frequency
drivers/hwmon/nct7904.c+1−0
@@ -575,6 +575,7 @@ static const struct i2c_device_id nct7904_id[] = { · 574 unmodified lines
575575 {"nct7904", 0},
576576 {}
577577 };
578+MODULE_DEVICE_TABLE(i2c, nct7904_id);
578579
579580 static struct i2c_driver nct7904_driver = {
580581 .class = I2C_CLASS_HWMON,