Skip to content

Commit be8425c

Browse files
committed
drm/bridge: Change parameter name of drm_atomic_bridge_chain_disable()
drm_atomic_bridge_chain_disable() disables all bridges affected by a new commit. It takes the drm_atomic_state being committed as a parameter. However, that parameter name is called (and documented) as old_state, which is pretty confusing. Let's rename that variable as state. Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Maxime Ripard <[email protected]>
1 parent 5af3ff9 commit be8425c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/gpu/drm/drm_bridge.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ EXPORT_SYMBOL(drm_bridge_chain_mode_set);
550550
/**
551551
* drm_atomic_bridge_chain_disable - disables all bridges in the encoder chain
552552
* @bridge: bridge control structure
553-
* @old_state: old atomic state
553+
* @state: atomic state being committed
554554
*
555555
* Calls &drm_bridge_funcs.atomic_disable (falls back on
556556
* &drm_bridge_funcs.disable) op for all the bridges in the encoder chain,
@@ -560,7 +560,7 @@ EXPORT_SYMBOL(drm_bridge_chain_mode_set);
560560
* Note: the bridge passed should be the one closest to the encoder
561561
*/
562562
void drm_atomic_bridge_chain_disable(struct drm_bridge *bridge,
563-
struct drm_atomic_state *old_state)
563+
struct drm_atomic_state *state)
564564
{
565565
struct drm_encoder *encoder;
566566
struct drm_bridge *iter;
@@ -571,7 +571,7 @@ void drm_atomic_bridge_chain_disable(struct drm_bridge *bridge,
571571
encoder = bridge->encoder;
572572
list_for_each_entry_reverse(iter, &encoder->bridge_chain, chain_node) {
573573
if (iter->funcs->atomic_disable) {
574-
iter->funcs->atomic_disable(iter, old_state);
574+
iter->funcs->atomic_disable(iter, state);
575575
} else if (iter->funcs->disable) {
576576
iter->funcs->disable(iter);
577577
}

0 commit comments

Comments
 (0)