summaryrefslogtreecommitdiffstats
path: root/drivers/firmware/dmi-id.c
diff options
context:
space:
mode:
authorKai-Chuan Hsieh <kaichuan.hsieh@canonical.com>2020-10-28 09:51:50 +0100
committerJean Delvare <jdelvare@suse.de>2020-10-28 09:51:50 +0100
commite26f023e01ef26b4138bc1099af309bdc4523d23 (patch)
tree2d8411c68ec62f6f3a60d43711dcbc854a226135 /drivers/firmware/dmi-id.c
parentLinux 5.10-rc1 (diff)
downloadlinux-e26f023e01ef26b4138bc1099af309bdc4523d23.tar.xz
linux-e26f023e01ef26b4138bc1099af309bdc4523d23.zip
firmware/dmi: Include product_sku info to modalias
Some Dell platforms rely on modalias to customize configuration, the product sku can be more specific for the hardware. Add product_sku to modalias for better utilization. Signed-off-by: Kai-Chuan Hsieh <kaichuan.hsieh@canonical.com> Signed-off-by: Jean Delvare <jdelvare@suse.de>
Diffstat (limited to 'drivers/firmware/dmi-id.c')
-rw-r--r--drivers/firmware/dmi-id.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/firmware/dmi-id.c b/drivers/firmware/dmi-id.c
index 86d71b0212b1..4d5421d14a41 100644
--- a/drivers/firmware/dmi-id.c
+++ b/drivers/firmware/dmi-id.c
@@ -85,6 +85,7 @@ static ssize_t get_modalias(char *buffer, size_t buffer_size)
{ "svn", DMI_SYS_VENDOR },
{ "pn", DMI_PRODUCT_NAME },
{ "pvr", DMI_PRODUCT_VERSION },
+ { "sku", DMI_PRODUCT_SKU },
{ "rvn", DMI_BOARD_VENDOR },
{ "rn", DMI_BOARD_NAME },
{ "rvr", DMI_BOARD_VERSION },