mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-08-31 01:11:51 -04:00
drm/bridge: remove drm_for_each_bridge_in_chain()
All users have been replaced by drm_for_each_bridge_in_chain_scoped(). Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/20250808-drm-bridge-alloc-getput-for_each_bridge-v2-7-edb6ee81edf1@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
This commit is contained in:
@@ -167,7 +167,6 @@ ForEachMacros:
|
|||||||
- 'drm_connector_for_each_possible_encoder'
|
- 'drm_connector_for_each_possible_encoder'
|
||||||
- 'drm_exec_for_each_locked_object'
|
- 'drm_exec_for_each_locked_object'
|
||||||
- 'drm_exec_for_each_locked_object_reverse'
|
- 'drm_exec_for_each_locked_object_reverse'
|
||||||
- 'drm_for_each_bridge_in_chain'
|
|
||||||
- 'drm_for_each_bridge_in_chain_scoped'
|
- 'drm_for_each_bridge_in_chain_scoped'
|
||||||
- 'drm_for_each_connector_iter'
|
- 'drm_for_each_connector_iter'
|
||||||
- 'drm_for_each_crtc'
|
- 'drm_for_each_crtc'
|
||||||
|
|||||||
@@ -1433,20 +1433,6 @@ drm_bridge_chain_get_last_bridge(struct drm_encoder *encoder)
|
|||||||
struct drm_bridge, chain_node));
|
struct drm_bridge, chain_node));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* drm_for_each_bridge_in_chain() - Iterate over all bridges present in a chain
|
|
||||||
* @encoder: the encoder to iterate bridges on
|
|
||||||
* @bridge: a bridge pointer updated to point to the current bridge at each
|
|
||||||
* iteration
|
|
||||||
*
|
|
||||||
* Iterate over all bridges present in the bridge chain attached to @encoder.
|
|
||||||
*
|
|
||||||
* This is deprecated, do not use!
|
|
||||||
* New drivers shall use drm_for_each_bridge_in_chain_scoped().
|
|
||||||
*/
|
|
||||||
#define drm_for_each_bridge_in_chain(encoder, bridge) \
|
|
||||||
list_for_each_entry(bridge, &(encoder)->bridge_chain, chain_node)
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* drm_bridge_get_next_bridge_and_put - Get the next bridge in the chain
|
* drm_bridge_get_next_bridge_and_put - Get the next bridge in the chain
|
||||||
* and put the previous
|
* and put the previous
|
||||||
|
|||||||
Reference in New Issue
Block a user