mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-27 11:58:32 -04:00
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
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user