aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-04-01 08:11:35 +0300
committerDmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>2025-04-22 16:49:11 +0300
commit4fc72e1fc46b0dca74c1f8c94091e524ad5b9fdb (patch)
tree3b21a6a01fd695318c5aae7b227808958ce8f724
parentdrm/bridge: analogix_dp: drop unused argument to analogix_dp_prepare_panel() (diff)
downloadwireguard-linux-4fc72e1fc46b0dca74c1f8c94091e524ad5b9fdb.tar.xz
wireguard-linux-4fc72e1fc46b0dca74c1f8c94091e524ad5b9fdb.zip
drm/bridge: analogic_dp: drop panel_is_modeset
The dp->panel_is_modeset is now a write-only field. Drop it completely. Tested-by: Damon Ding <damon.ding@rock-chips.com> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://lore.kernel.org/r/20250401-panel-return-void-v1-3-93e1be33dc8d@oss.qualcomm.com Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
-rw-r--r--drivers/gpu/drm/bridge/analogix/analogix_dp_core.c11
-rw-r--r--drivers/gpu/drm/bridge/analogix/analogix_dp_core.h1
2 files changed, 1 insertions, 11 deletions
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
index 20f356a22262..f62035c50f35 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.c
@@ -964,9 +964,7 @@ static int analogix_dp_disable_psr(struct analogix_dp_device *dp)
* is false, the panel will be unprepared.
*
* The function will disregard the current state
- * of the panel and either prepare/unprepare the panel based on @prepare. Once
- * it finishes, it will update dp->panel_is_modeset to reflect the current state
- * of the panel.
+ * of the panel and either prepare/unprepare the panel based on @prepare.
*/
static int analogix_dp_prepare_panel(struct analogix_dp_device *dp,
bool prepare)
@@ -983,12 +981,6 @@ static int analogix_dp_prepare_panel(struct analogix_dp_device *dp,
else
ret = drm_panel_unprepare(dp->plat_data->panel);
- if (ret)
- goto out;
-
- dp->panel_is_modeset = prepare;
-
-out:
mutex_unlock(&dp->panel_lock);
return ret;
}
@@ -1556,7 +1548,6 @@ analogix_dp_probe(struct device *dev, struct analogix_dp_plat_data *plat_data)
dp->dpms_mode = DRM_MODE_DPMS_OFF;
mutex_init(&dp->panel_lock);
- dp->panel_is_modeset = false;
/*
* platform dp driver need containor_of the plat_data to get
diff --git a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.h b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.h
index 774d11574b09..b679d5b71d27 100644
--- a/drivers/gpu/drm/bridge/analogix/analogix_dp_core.h
+++ b/drivers/gpu/drm/bridge/analogix/analogix_dp_core.h
@@ -170,7 +170,6 @@ struct analogix_dp_device {
bool psr_supported;
struct mutex panel_lock;
- bool panel_is_modeset;
struct analogix_dp_plat_data *plat_data;
};