mirror of
https://github.com/torvalds/linux.git
synced 2024-11-10 06:01:57 +00:00
drm/i915: make __intel_display_power_is_enabled() static
The function isn't used outside of intel_display_power.c. Make it static. Reviewed-by: Imre Deak <imre.deak@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240813151216.2573845-1-jani.nikula@intel.com Signed-off-by: Jani Nikula <jani.nikula@intel.com>
This commit is contained in:
parent
db639278e6
commit
202b85da0a
@ -198,20 +198,8 @@ intel_display_power_domain_str(enum intel_display_power_domain domain)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* __intel_display_power_is_enabled - unlocked check for a power domain
|
||||
* @dev_priv: i915 device instance
|
||||
* @domain: power domain to check
|
||||
*
|
||||
* This is the unlocked version of intel_display_power_is_enabled() and should
|
||||
* only be used from error capture and recovery code where deadlocks are
|
||||
* possible.
|
||||
*
|
||||
* Returns:
|
||||
* True when the power domain is enabled, false otherwise.
|
||||
*/
|
||||
bool __intel_display_power_is_enabled(struct drm_i915_private *dev_priv,
|
||||
enum intel_display_power_domain domain)
|
||||
static bool __intel_display_power_is_enabled(struct drm_i915_private *dev_priv,
|
||||
enum intel_display_power_domain domain)
|
||||
{
|
||||
struct i915_power_well *power_well;
|
||||
bool is_enabled;
|
||||
|
@ -188,8 +188,6 @@ intel_display_power_domain_str(enum intel_display_power_domain domain);
|
||||
|
||||
bool intel_display_power_is_enabled(struct drm_i915_private *dev_priv,
|
||||
enum intel_display_power_domain domain);
|
||||
bool __intel_display_power_is_enabled(struct drm_i915_private *dev_priv,
|
||||
enum intel_display_power_domain domain);
|
||||
intel_wakeref_t intel_display_power_get(struct drm_i915_private *dev_priv,
|
||||
enum intel_display_power_domain domain);
|
||||
intel_wakeref_t
|
||||
|
Loading…
Reference in New Issue
Block a user