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