summaryrefslogtreecommitdiff
path: root/rust/helpers/bitops.c
diff options
context:
space:
mode:
authorLuca Ceresoli <luca.ceresoli@bootlin.com>2025-08-01 19:05:27 +0200
committerLuca Ceresoli <luca.ceresoli@bootlin.com>2025-09-02 11:38:29 +0200
commite4cedfd4f0fc839bb3c783d7e827e9755e1af5cf (patch)
treee59a4c2e978bfc6b0ce6d7a6095cb63f2d2ec2fb /rust/helpers/bitops.c
parentc3183f71c3f1f004a0ca0b84c45c40d8b84dce3d (diff)
drm/bridge: add drm_bridge_is_last()
Some code needing to know whether a bridge is the last in a chain currently call drm_bridge_get_next_bridge(). However drm_bridge_get_next_bridge() will soon increment the refcount of the returned bridge, which would make such code more annoying to write. In preparation for drm_bridge_get_next_bridge() to increment the refcount, as well as to simplify such code, introduce a simple bool function to tell whether a bridge is the last in the chain. Reviewed-by: Maxime Ripard <mripard@kernel.org> Link: https://lore.kernel.org/r/20250801-drm-bridge-alloc-getput-drm_bridge_get_next_bridge-v2-5-888912b0be13@bootlin.com Signed-off-by: Luca Ceresoli <luca.ceresoli@bootlin.com>
Diffstat (limited to 'rust/helpers/bitops.c')
0 files changed, 0 insertions, 0 deletions