* [PATCH] phy: rockchip: usbdp: Remove unnecessary bool conversion
@ 2025-02-24 22:03 Thorsten Blum
2025-02-27 13:30 ` Heiko Stübner
2025-03-12 15:58 ` Vinod Koul
0 siblings, 2 replies; 3+ messages in thread
From: Thorsten Blum @ 2025-02-24 22:03 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I, Heiko Stuebner
Cc: Thorsten Blum, linux-phy, linux-arm-kernel, linux-rockchip,
linux-kernel
Remove the unnecessary bool conversion and simplify the code.
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
---
drivers/phy/rockchip/phy-rockchip-usbdp.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/phy/rockchip/phy-rockchip-usbdp.c b/drivers/phy/rockchip/phy-rockchip-usbdp.c
index 5b1e8a3806ed..f7a36ed59ef7 100644
--- a/drivers/phy/rockchip/phy-rockchip-usbdp.c
+++ b/drivers/phy/rockchip/phy-rockchip-usbdp.c
@@ -978,7 +978,7 @@ static int rk_udphy_parse_dt(struct rk_udphy *udphy)
if (device_property_present(dev, "maximum-speed")) {
maximum_speed = usb_get_maximum_speed(dev);
- udphy->hs = maximum_speed <= USB_SPEED_HIGH ? true : false;
+ udphy->hs = maximum_speed <= USB_SPEED_HIGH;
}
ret = rk_udphy_clk_init(udphy, dev);
--
2.48.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: rockchip: usbdp: Remove unnecessary bool conversion
2025-02-24 22:03 [PATCH] phy: rockchip: usbdp: Remove unnecessary bool conversion Thorsten Blum
@ 2025-02-27 13:30 ` Heiko Stübner
2025-03-12 15:58 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Heiko Stübner @ 2025-02-27 13:30 UTC (permalink / raw)
To: Vinod Koul, Kishon Vijay Abraham I, Thorsten Blum
Cc: Thorsten Blum, linux-phy, linux-arm-kernel, linux-rockchip,
linux-kernel
Am Montag, 24. Februar 2025, 23:03:39 MEZ schrieb Thorsten Blum:
> Remove the unnecessary bool conversion and simplify the code.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: Heiko Stuebner <heiko@sntech.de>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] phy: rockchip: usbdp: Remove unnecessary bool conversion
2025-02-24 22:03 [PATCH] phy: rockchip: usbdp: Remove unnecessary bool conversion Thorsten Blum
2025-02-27 13:30 ` Heiko Stübner
@ 2025-03-12 15:58 ` Vinod Koul
1 sibling, 0 replies; 3+ messages in thread
From: Vinod Koul @ 2025-03-12 15:58 UTC (permalink / raw)
To: Kishon Vijay Abraham I, Heiko Stuebner, Thorsten Blum
Cc: linux-phy, linux-arm-kernel, linux-rockchip, linux-kernel
On Mon, 24 Feb 2025 23:03:39 +0100, Thorsten Blum wrote:
> Remove the unnecessary bool conversion and simplify the code.
>
>
Applied, thanks!
[1/1] phy: rockchip: usbdp: Remove unnecessary bool conversion
commit: b52b330046d16f6e4ce94ae6fa349cc30af027b3
Best regards,
--
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-03-12 16:08 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-24 22:03 [PATCH] phy: rockchip: usbdp: Remove unnecessary bool conversion Thorsten Blum
2025-02-27 13:30 ` Heiko Stübner
2025-03-12 15:58 ` Vinod Koul
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).