diff options
author | Jani Nikula <jani.nikula@intel.com> | 2021-12-10 14:17:00 +0100 |
---|---|---|
committer | Jani Nikula <jani.nikula@intel.com> | 2021-12-13 11:05:06 +0100 |
commit | ee0ff28a497eed4e23e0d617e6f5feacca69e0f1 (patch) | |
tree | e8b8f29b1764fa30d0f6b6893b69d1b083ab7485 /drivers/gpu/drm/i915/pxp/intel_pxp.c | |
parent | drm/i915/fb: reduce include dependencies (diff) | |
download | linux-ee0ff28a497eed4e23e0d617e6f5feacca69e0f1.tar.xz linux-ee0ff28a497eed4e23e0d617e6f5feacca69e0f1.zip |
drm/i915/pxp: un-inline intel_pxp_is_enabled()
In the interest of reducing include dependencies, un-inline
intel_pxp_is_enabled().
v2: Fix build for CONFIG_DRM_I915_PXP=n
Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/36bbb3708f3b1f84f0718afff94212dde93cb479.1639142167.git.jani.nikula@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/pxp/intel_pxp.c')
-rw-r--r-- | drivers/gpu/drm/i915/pxp/intel_pxp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/pxp/intel_pxp.c b/drivers/gpu/drm/i915/pxp/intel_pxp.c index e2314ad9546d..15311eaed848 100644 --- a/drivers/gpu/drm/i915/pxp/intel_pxp.c +++ b/drivers/gpu/drm/i915/pxp/intel_pxp.c @@ -44,6 +44,11 @@ struct intel_gt *pxp_to_gt(const struct intel_pxp *pxp) return container_of(pxp, struct intel_gt, pxp); } +bool intel_pxp_is_enabled(const struct intel_pxp *pxp) +{ + return pxp->ce; +} + bool intel_pxp_is_active(const struct intel_pxp *pxp) { return pxp->arb_is_valid; |