Commit f4249942 authored by Jani Nikula's avatar Jani Nikula

drm/i915/pps: rename intel_edp_backlight_* to intel_pps_backlight_*

Follow the usual naming pattern for functions. No functional changes.
Reviewed-by: default avatarAnshuman Gupta <anshuman.gupta@intel.com>
Signed-off-by: default avatarJani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/9887e4e278ed9a20da064bbf1d0845e52b7c3b3d.1610127741.git.jani.nikula@intel.com
parent 7191d9d2
...@@ -2620,7 +2620,7 @@ void intel_edp_backlight_on(const struct intel_crtc_state *crtc_state, ...@@ -2620,7 +2620,7 @@ void intel_edp_backlight_on(const struct intel_crtc_state *crtc_state,
drm_dbg_kms(&i915->drm, "\n"); drm_dbg_kms(&i915->drm, "\n");
intel_panel_enable_backlight(crtc_state, conn_state); 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. */ /* Disable backlight PP control and backlight PWM. */
...@@ -2634,7 +2634,7 @@ void intel_edp_backlight_off(const struct drm_connector_state *old_conn_state) ...@@ -2634,7 +2634,7 @@ void intel_edp_backlight_off(const struct drm_connector_state *old_conn_state)
drm_dbg_kms(&i915->drm, "\n"); 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); intel_panel_disable_backlight(old_conn_state);
} }
...@@ -7179,7 +7179,7 @@ static bool intel_edp_init_connector(struct intel_dp *intel_dp, ...@@ -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_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); intel_panel_setup_backlight(connector, pipe);
if (fixed_mode) { if (fixed_mode) {
......
...@@ -844,7 +844,7 @@ void intel_edp_panel_off(struct intel_dp *intel_dp) ...@@ -844,7 +844,7 @@ void intel_edp_panel_off(struct intel_dp *intel_dp)
} }
/* Enable backlight in the panel power control. */ /* 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); struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
intel_wakeref_t wakeref; intel_wakeref_t wakeref;
...@@ -870,7 +870,7 @@ void _intel_edp_backlight_on(struct intel_dp *intel_dp) ...@@ -870,7 +870,7 @@ void _intel_edp_backlight_on(struct intel_dp *intel_dp)
} }
/* Disable backlight in the panel power control. */ /* 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); struct drm_i915_private *dev_priv = dp_to_i915(intel_dp);
intel_wakeref_t wakeref; intel_wakeref_t wakeref;
...@@ -897,7 +897,7 @@ void _intel_edp_backlight_off(struct intel_dp *intel_dp) ...@@ -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 * Hook for controlling the panel power control backlight through the bl_power
* sysfs attribute. Take care to handle multiple calls. * 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 drm_i915_private *i915 = to_i915(connector->base.dev);
struct intel_dp *intel_dp = intel_attached_dp(connector); struct intel_dp *intel_dp = intel_attached_dp(connector);
...@@ -914,9 +914,9 @@ void intel_edp_backlight_power(struct intel_connector *connector, bool enable) ...@@ -914,9 +914,9 @@ void intel_edp_backlight_power(struct intel_connector *connector, bool enable)
enable ? "enable" : "disable"); enable ? "enable" : "disable");
if (enable) if (enable)
_intel_edp_backlight_on(intel_dp); intel_pps_backlight_on(intel_dp);
else else
_intel_edp_backlight_off(intel_dp); intel_pps_backlight_off(intel_dp);
} }
static void vlv_detach_power_sequencer(struct intel_dp *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 ...@@ -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))) 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_dp_check_edp(struct intel_dp *intel_dp);
void _intel_edp_backlight_on(struct intel_dp *intel_dp); void intel_pps_backlight_on(struct intel_dp *intel_dp);
void _intel_edp_backlight_off(struct intel_dp *intel_dp); void intel_pps_backlight_off(struct intel_dp *intel_dp);
void intel_edp_backlight_power(struct intel_connector *connector, bool enable); void intel_pps_backlight_power(struct intel_connector *connector, bool enable);
bool edp_panel_vdd_on(struct intel_dp *intel_dp); bool edp_panel_vdd_on(struct intel_dp *intel_dp);
void edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync); void edp_panel_vdd_off(struct intel_dp *intel_dp, bool sync);
......
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