summaryrefslogtreecommitdiff
path: root/drivers/fpga/fpga-region.c
diff options
context:
space:
mode:
authorAnand Moon <linux.amoon@gmail.com>2024-10-12 10:19:07 +0300
committerVinod Koul <vkoul@kernel.org>2024-12-04 16:27:08 +0300
commit96522eeb8735449957272e9c6f8ea3b72dcbdeb8 (patch)
treed19feaad44ea25aaf3d7a393866fa678ceb38d9f /drivers/fpga/fpga-region.c
parentbb70d1aae565fd52e6a50e643d1ad6e7d419c2a5 (diff)
downloadlinux-96522eeb8735449957272e9c6f8ea3b72dcbdeb8.tar.xz
phy: rockchip-pcie: Refactor mutex handling in rockchip_pcie_phy_power_on()
Refactor the mutex handling in the rockchip_pcie_phy_power_on() function to improve code readability and maintainability. The goto statement has been removed, and the mutex_unlock call is now directly within the conditional block. Return the result of reset_control_deassert() or regmap_read_poll_timeout() function, with 0 indicating success and an error code indicating failure. Signed-off-by: Anand Moon <linux.amoon@gmail.com> Link: https://lore.kernel.org/r/20241012071919.3726-6-linux.amoon@gmail.com Signed-off-by: Vinod Koul <vkoul@kernel.org>
Diffstat (limited to 'drivers/fpga/fpga-region.c')
0 files changed, 0 insertions, 0 deletions