diff options
Diffstat (limited to 'drivers/firmware/dmi_scan.c')
| -rw-r--r-- | drivers/firmware/dmi_scan.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/firmware/dmi_scan.c b/drivers/firmware/dmi_scan.c index 8daf4793ac32..4a597d8c2f70 100644 --- a/drivers/firmware/dmi_scan.c +++ b/drivers/firmware/dmi_scan.c | |||
| @@ -467,6 +467,17 @@ const char *dmi_get_system_info(int field) | |||
| 467 | } | 467 | } |
| 468 | EXPORT_SYMBOL(dmi_get_system_info); | 468 | EXPORT_SYMBOL(dmi_get_system_info); |
| 469 | 469 | ||
| 470 | /** | ||
| 471 | * dmi_name_in_serial - Check if string is in the DMI product serial | ||
| 472 | * information. | ||
| 473 | */ | ||
| 474 | int dmi_name_in_serial(const char *str) | ||
| 475 | { | ||
| 476 | int f = DMI_PRODUCT_SERIAL; | ||
| 477 | if (dmi_ident[f] && strstr(dmi_ident[f], str)) | ||
| 478 | return 1; | ||
| 479 | return 0; | ||
| 480 | } | ||
| 470 | 481 | ||
| 471 | /** | 482 | /** |
| 472 | * dmi_name_in_vendors - Check if string is anywhere in the DMI vendor information. | 483 | * dmi_name_in_vendors - Check if string is anywhere in the DMI vendor information. |
