summaryrefslogtreecommitdiff
path: root/lib/igt_psr.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/igt_psr.c')
-rw-r--r--lib/igt_psr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_psr.c b/lib/igt_psr.c
index bc142632..6c5cf43d 100644
--- a/lib/igt_psr.c
+++ b/lib/igt_psr.c
@@ -30,7 +30,7 @@ bool psr_active(int fd, bool check_active)
bool active;
char buf[512];
- igt_debugfs_read(fd, "i915_edp_psr_status", buf);
+ igt_debugfs_simple_read(fd, "i915_edp_psr_status", buf, sizeof(buf));
active = strstr(buf, "HW Enabled & Active bit: yes\n") &&
(strstr(buf, "SRDENT") || strstr(buf, "SLEEP"));
return check_active ? active : !active;