]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/bridge: samsung-dsim: use while loop in samsung_dsim_transfer_start
authorPhilipp Zabel <p.zabel@pengutronix.de>
Tue, 27 May 2025 14:21:47 +0000 (16:21 +0200)
committerPhilipp Zabel <p.zabel@pengutronix.de>
Fri, 27 Jun 2025 11:05:56 +0000 (13:05 +0200)
commitbafc628678796e3a05bd54c30280f4ecdaf3ebba
tree5c197b6eaad38e7f8ab12e1dc045bb12d8c303ec
parent017a6f7e7e25017eef9c30946cb0e7c803cb3f35
drm/bridge: samsung-dsim: use while loop in samsung_dsim_transfer_start

Turn the open-coded goto-again construct into a while loop, to make
samsung_dsim_transfer_start() a bit shorter and easier to read.

Hold the spinlock when looping back around and avoid the duplicated
list_empty() check.

Reviewed-by: Alexander Stein <alexander.stein@ew.tq-group.com>
Reviewed-by: Frieder Schrempf <frieder.schrempf@kontron.de>
Link: https://lore.kernel.org/r/20250527-samsung-dsim-v1-1-5be520d84fbb@pengutronix.de
Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
drivers/gpu/drm/bridge/samsung-dsim.c