hwmon: Fix autoloading of fschmd on recent Fujitsu machines

Fujitsu slightly changed the DMI strings in their recent machines,
(for example the D2778) and this breaks the automatic loading of the
needed fschmd driver. Being more tolerant on string comparison fixes
the issue.

This closes bug #15634:
https://bugzilla.kernel.org/show_bug.cgi?id=15634

Signed-off-by: Jean Delvare <khali@linux-fr.org>
Tested-by: Sergey Spiridonov <sena@hurd.homeunix.org>
Cc: Hans de Goede <hdegoede@redhat.com>

+2 -6
+2 -6
drivers/i2c/busses/i2c-i801.c
··· 655 /* & ~0x80, ignore enabled/disabled bit */ 656 if ((type & ~0x80) != dmi_devices[i].type) 657 continue; 658 - if (strcmp(name, dmi_devices[i].name)) 659 continue; 660 661 memset(&info, 0, sizeof(struct i2c_board_info)); ··· 704 { 705 unsigned char temp; 706 int err, i; 707 - #if defined CONFIG_SENSORS_FSCHMD || defined CONFIG_SENSORS_FSCHMD_MODULE 708 - const char *vendor; 709 - #endif 710 711 I801_dev = dev; 712 i801_features = 0; ··· 805 } 806 #endif 807 #if defined CONFIG_SENSORS_FSCHMD || defined CONFIG_SENSORS_FSCHMD_MODULE 808 - vendor = dmi_get_system_info(DMI_BOARD_VENDOR); 809 - if (vendor && !strcmp(vendor, "FUJITSU SIEMENS")) 810 dmi_walk(dmi_check_onboard_devices, &i801_adapter); 811 #endif 812
··· 655 /* & ~0x80, ignore enabled/disabled bit */ 656 if ((type & ~0x80) != dmi_devices[i].type) 657 continue; 658 + if (strcasecmp(name, dmi_devices[i].name)) 659 continue; 660 661 memset(&info, 0, sizeof(struct i2c_board_info)); ··· 704 { 705 unsigned char temp; 706 int err, i; 707 708 I801_dev = dev; 709 i801_features = 0; ··· 808 } 809 #endif 810 #if defined CONFIG_SENSORS_FSCHMD || defined CONFIG_SENSORS_FSCHMD_MODULE 811 + if (dmi_name_in_vendors("FUJITSU")) 812 dmi_walk(dmi_check_onboard_devices, &i801_adapter); 813 #endif 814