summaryrefslogtreecommitdiff
path: root/drivers/fpga/xilinx-spi.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@linaro.org>2025-10-17 19:04:23 +0300
committerVinod Koul <vkoul@kernel.org>2025-11-20 22:24:35 +0530
commit9d3daf9ca3239042c2cf473a76db2a77e6de22c6 (patch)
treeeef1f8d831375b47afe240911f933ff728b41788 /drivers/fpga/xilinx-spi.c
parent1797c6677ad6298ca463b6ee42245e19e9cc1206 (diff)
phy: ti: gmii-sel: Add a sanity check on the phy_id
The "phy_id" comes from the device tree so it's going to be correct. But static checkers sometimes complain when we have an upper bounds check with no lower bounds check. Also it's a bit unusual that the lowest valid number is 1 instead of 0 so adding a check could potentially help someone. Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Neil Armstrong <neil.armstrong@linaro.org> Link: https://patch.msgid.link/aPJpB-QI8FMpFGOk@stanley.mountain Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/fpga/xilinx-spi.c')
0 files changed, 0 insertions, 0 deletions