]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
backlight: accept embedded display port named e.g. card0-eDP-1
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 8 Aug 2022 11:51:46 +0000 (20:51 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 9 Aug 2022 05:30:05 +0000 (14:30 +0900)
src/backlight/backlight.c

index a4e5d77f6c8074c98136d506d440c6dd80d04d01..0ec6afb773154c87395196aff2a710d66147f728 100644 (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;