qca-ssdk: fix rtl826xb PHY driver compilation with gcc13

Fix return type mismatch in phy_common_general_reg_mmd_set function
for gcc13 compatibility.

Signed-off-by: John Crispin <john@phrozen.org>
This commit is contained in:
John Crispin
2025-10-19 00:00:00 +02:00
parent 91f443582f
commit abb36ee1e4

View File

@@ -0,0 +1,11 @@
--- a/src/hsl/phy/rtl826xb_phy.c
+++ b/src/hsl/phy/rtl826xb_phy.c
@@ -127,7 +127,7 @@ phy_common_general_reg_mmd_get(a_uint32_
* Note:
* None
*/
-a_int32_t
+sw_error_t
phy_common_general_reg_mmd_set(a_uint32_t unit, a_uint32_t port, a_uint16_t mmdAddr, a_uint16_t mmdReg, a_uint16_t data)
{
/* temporary support C45 only */