diff options
Diffstat (limited to 'src/backlight/backlight.c')
-rw-r--r-- | src/backlight/backlight.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c index a866c68823..780ad56eb1 100644 --- a/src/backlight/backlight.c +++ b/src/backlight/backlight.c @@ -44,9 +44,7 @@ static int find_pci_or_platform_parent(sd_device *device, sd_device **ret) { c += strspn(c, DIGITS); if (*c == '-') { /* A connector DRM device, let's ignore all but LVDS and eDP! */ - - if (!startswith(c, "-LVDS-") && - !startswith(c, "-Embedded DisplayPort-")) + if (!STARTSWITH_SET(c, "-LVDS-", "-Embedded DisplayPort-")) return -EOPNOTSUPP; } |