summaryrefslogtreecommitdiff
path: root/src/backlight
diff options
context:
space:
mode:
authorMartin Pitt <martin.pitt@ubuntu.com>2016-09-27 16:25:27 +0200
committerGitHub <noreply@github.com>2016-09-27 16:25:27 +0200
commitb8fafaf4a1cffd02389d61ed92ca7acb1b8c739c (patch)
tree86ebd6e5617bc070af89556aed247b4eb1f6a6ea /src/backlight
parent629abfc23f4e8d61ec0e952182e8200656b2bbe1 (diff)
parent9aa8fa701b79b74d118df8dbda0940f74aa8735b (diff)
Merge pull request #4220 from keszybz/show-and-formatting-fixes
Show and formatting fixes
Diffstat (limited to 'src/backlight')
-rw-r--r--src/backlight/backlight.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backlight/backlight.c b/src/backlight/backlight.c
index 45be135a23..7c59f60d5f 100644
--- a/src/backlight/backlight.c
+++ b/src/backlight/backlight.c
@@ -167,7 +167,7 @@ static bool validate_device(struct udev *udev, struct udev_device *device) {
continue;
v = udev_device_get_sysattr_value(other, "type");
- if (!streq_ptr(v, "platform") && !streq_ptr(v, "firmware"))
+ if (!STRPTR_IN_SET(v, "platform", "firmware"))
continue;
/* OK, so there's another backlight device, and it's a