[PATCH 0/7] drm/panel: make prepare / enable / disable / unprepare return void

Dmitry Baryshkov
2025-04-01T05:11:51Z

While it makes sense for panel callbacks to be able to return an error,
the state-management functions from drm_panel API are usually called
from atomic callbacks, which can not fails and must return void. Make
drm_panel_prepare(), drm_panel_enable(), drm_panel_disable() and
drm_panel_unprepare() follow the same calling convention and return
void.

Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>
---
Dmitry Baryshkov (7):
drm/bridge: analogix_dp: drop extra calls to analogix_dp_prepare_panel()
drm/bridge: analogix_dp: drop unused argument to analogix_dp_prepare_panel()
drm/bridge: analogic_dp: drop panel_is_modeset
drm/bridge: analogic_dp: drop panel_lock
drm/bridge: analogix_dp: inline analogix_dp_prepare_panel()
drm/bridge: analogix_dp: ignore return values of drm_panel_* calls
drm/panel: make prepare/enable and disable/unprepare calls return void

drivers/gpu/drm/bridge/analogix/analogix_dp_core.c | 107 ++-------------------
drivers/gpu/drm/bridge/analogix/analogix_dp_core.h | 3 -
drivers/gpu/drm/drm_panel.c | 54 ++++-------
drivers/gpu/drm/panel/panel-newvision-nv3051d.c | 9 +-
include/drm/drm_panel.h | 8 +-
5 files changed, 33 insertions(+), 148 deletions(-)
---
base-commit: bfb20a655848a9088e3e9ae24b1dcce1bbf016c2
change-id: 20250401-panel-return-void-d461c71ebd35

Best regards,
--
Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com>