mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-05 18:14:07 +08:00
drm/i915/pps: rename intel_edp_backlight_* to intel_pps_backlight_*
Follow the usual naming pattern for functions. No functional changes. Reviewed-by: Anshuman Gupta <anshuman.gupta@intel.com> Signed-off-by: Jani Nikula <jani.nikula@intel.com> Link: https://patchwork.freedesktop.org/patch/msgid/9887e4e278ed9a20da064bbf1d0845e52b7c3b3d.1610127741.git.jani.nikula@intel.com
This commit is contained in:
parent
7191d9d21b
commit
f424994298
@ -2620,7 +2620,7 @@ void intel_edp_backlight_on(const struct intel_crtc_state *crtc_state,
|
||||
drm_dbg_kms(&i915->drm, "\n");
|
||||
|
||||
intel_panel_enable_backlight(crtc_state, conn_state);
|
||||
_intel_edp_backlight_on(intel_dp);
|
||||
intel_pps_backlight_on(intel_dp);
|
||||
}
|
||||
|
||||
/* Disable backlight PP control and backlight PWM. */
|
||||
@ -2634,7 +2634,7 @@ void intel_edp_backlight_off(const struct drm_connector_state *old_conn_state)
|
||||
|
||||
drm_dbg_kms(&i915->drm, "\n");
|
||||
|
||||
_intel_edp_backlight_off(intel_dp);
|
||||
intel_pps_backlight_off(intel_dp);
|
||||
intel_panel_disable_backlight(old_conn_state);
|
||||
}
|
||||
|
||||
@ -7179,7 +7179,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp,
|
||||
}
|
||||
|
||||
intel_panel_init(&intel_connector->panel, fixed_mode, downclock_mode);
|
||||
intel_connector->panel.backlight.power = intel_edp_backlight_power;
|
||||
intel_connector->panel.backlight.power = intel_pps_backlight_power;
|
||||
intel_panel_setup_backlight(connector, pipe);
|
||||
|
||||
if (fixed_mode) {
|
||||
|
@ -844,7 +844,7 @@ void intel_edp_panel_off(struct intel_dp *intel_dp)
|
||||
}
|
||||
|
||||
/* Enable backlight in the panel power control. */
|
||||
void _intel_edp_backlight_on(struct intel_dp *intel_dp)
|
||||
void intel_pps_backlight_on(struct intel_dp *intel_dp)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
|
||||
intel_wakeref_t wakeref;
|
||||
@ -870,7 +870,7 @@ void _intel_edp_backlight_on(struct intel_dp *intel_dp)
|
||||
}
|
||||
|
||||
/* Disable backlight in the panel power control. */
|
||||
void _intel_edp_backlight_off(struct intel_dp *intel_dp)
|
||||
void intel_pps_backlight_off(struct intel_dp *intel_dp)
|
||||
{
|
||||
struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
|
||||
intel_wakeref_t wakeref;
|
||||
@ -897,7 +897,7 @@ void _intel_edp_backlight_off(struct intel_dp *intel_dp)
|
||||
* Hook for controlling the panel power control backlight through the bl_power
|
||||
* sysfs attribute. Take care to handle multiple calls.
|
||||
*/
|
||||
void intel_edp_backlight_power(struct intel_connector *connector, bool enable)
|
||||
void intel_pps_backlight_power(struct intel_connector *connector, bool enable)
|
||||
{
|
||||
struct drm_i915_private *i915 = to_i915(connector->base.dev);
|
||||
struct intel_dp *intel_dp = intel_attached_dp(connector);
|
||||
@ -914,9 +914,9 @@ void intel_edp_backlight_power(struct intel_connector *connector, bool enable)
|
||||
enable ? "enable" : "disable");
|
||||
|
||||
if (enable)
|
||||
_intel_edp_backlight_on(intel_dp);
|
||||
intel_pps_backlight_on(intel_dp);
|
||||
else
|
||||
_intel_edp_backlight_off(intel_dp);
|
||||
intel_pps_backlight_off(intel_dp);
|
||||
}
|
||||
|
||||
static void vlv_detach_power_sequencer(struct intel_dp *intel_dp)
|
||||
|
@ -23,9 +23,9 @@ intel_wakeref_t intel_pps_unlock(struct intel_dp *intel_dp, intel_wakeref_t wake
|
||||
for ((wf) = intel_pps_lock(dp); (wf); (wf) = intel_pps_unlock((dp), (wf)))
|
||||
|
||||
void intel_dp_check_edp(struct intel_dp *intel_dp);
|
||||
void _intel_edp_backlight_on(struct intel_dp *intel_dp);
|
||||
void _intel_edp_backlight_off(struct intel_dp *intel_dp);
|
||||
void intel_edp_backlight_power(struct intel_connector *connector, bool enable);
|
||||
void intel_pps_backlight_on(struct intel_dp *intel_dp);
|
||||
void intel_pps_backlight_off(struct intel_dp *intel_dp);
|
||||
void intel_pps_backlight_power(struct intel_connector *connector, bool enable);
|
||||
|
||||
bool edp_panel_vdd_on(struct intel_dp *intel_dp);
|
||||
void edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync);
|
||||
|
Loading…
Reference in New Issue
Block a user