Commit a17775a1 authored by Alyssa Rosenzweig's avatar Alyssa Rosenzweig

drm/panfrost: Constify argument to has_hw_issue

Logically, this function is free of side effects, so any pointers it
takes should be const. Needed to avoid a warning in the next patch.
Reviewed-by: default avatarSteven Price <steven.price@arm.com>
Signed-off-by: default avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20220525145754.25866-4-alyssa.rosenzweig@collabora.com
parent 38243570
...@@ -251,7 +251,7 @@ enum panfrost_hw_issue { ...@@ -251,7 +251,7 @@ enum panfrost_hw_issue {
#define hw_issues_g76 0 #define hw_issues_g76 0
static inline bool panfrost_has_hw_issue(struct panfrost_device *pfdev, static inline bool panfrost_has_hw_issue(const struct panfrost_device *pfdev,
enum panfrost_hw_issue issue) enum panfrost_hw_issue issue)
{ {
return test_bit(issue, pfdev->features.hw_issues); return test_bit(issue, pfdev->features.hw_issues);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment