Skip to content
Commit 776f1bde authored by Changhuang Liang's avatar Changhuang Liang Committed by Mauro Carvalho Chehab
Browse files

media: staging: media: starfive: Clean pad selection in isp_try_format()



The code to select isp_dev->formats[] is overly complicated.  We can
just use the "pad" as the index.  This will making adding new pads
easier in future patches.  No functional change.

Link: https://lore.kernel.org/linux-media/20240312024520.11022-1-changhuang.liang@starfivetech.com
Signed-off-by: default avatarChanghuang Liang <changhuang.liang@starfivetech.com>
Reviewed-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@kernel.org>
parent 53dbe085
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment