diff options
author | José Roberto de Souza <jose.souza@intel.com> | 2018-10-23 13:57:02 -0700 |
---|---|---|
committer | José Roberto de Souza <jose.souza@intel.com> | 2019-01-14 14:33:15 -0800 |
commit | 465001c775a516ac1c7c24302593b02c0f73f486 (patch) | |
tree | c5f160d85a706fd5d4cddd41d5685a45dd19e3be /lib/igt_psr.h | |
parent | 7d3fdd0fdddb0993ad25d1416e77ed812f284e32 (diff) |
lib/psr: Add a macro with the maximum lenght of i915_edp_psr_status and use it
So every function reading i915_edp_psr_status can allocate a buffer
long enough.
Cc: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Reviewed-by: Dhinakaran Pandiyan <dhinakaran.pandiyan@intel.com>
Signed-off-by: José Roberto de Souza <jose.souza@intel.com>
Diffstat (limited to 'lib/igt_psr.h')
-rw-r--r-- | lib/igt_psr.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/igt_psr.h b/lib/igt_psr.h index b9693822..96f7bedf 100644 --- a/lib/igt_psr.h +++ b/lib/igt_psr.h @@ -28,6 +28,8 @@ #include "igt_core.h" #include "igt_aux.h" +#define PSR_STATUS_MAX_LEN 512 + bool psr_wait_entry(int debugfs_fd); bool psr_wait_exit(int debugfs_fd); bool psr_enable(int debugfs_fd); |