backlight: accept embedded display port named e.g. card0-eDP-1

This commit is contained in:
Yu Watanabe
2022-08-09 14:30:05 +09:00
parent 5ed47c4d23
commit 85ff4150e1
+1 -1
View File
@@ -72,7 +72,7 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) {
return -ENODATA;
c += strspn(c, DIGITS);
if (*c == '-' && !STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-"))
if (*c == '-' && !STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-", "-eDP-"))
/* A connector DRM device, let's ignore all but LVDS and eDP! */
return -EOPNOTSUPP;