[PATCH master 2/2] net: dsa: ksz8873: fix mismatched return value
Ahmad Fatoum
a.fatoum at pengutronix.de
Tue Jan 24 23:53:54 PST 2023
Both read and write operations for the regmap are supposed to return an
int, not a ssize_t and build warns about this. Fix it.
Signed-off-by: Ahmad Fatoum <a.fatoum at pengutronix.de>
---
drivers/net/ksz8873.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ksz8873.c b/drivers/net/ksz8873.c
index 3e3ad2413e9a..1df8d6dd924a 100644
--- a/drivers/net/ksz8873.c
+++ b/drivers/net/ksz8873.c
@@ -96,7 +96,7 @@ static int ksz8873_mdio_read(void *ctx, unsigned int reg, unsigned int *val)
return 0;
}
-static ssize_t ksz8873_mdio_write(void *ctx, unsigned int reg, unsigned int val)
+static int ksz8873_mdio_write(void *ctx, unsigned int reg, unsigned int val)
{
struct ksz8873_switch *priv = ctx;
struct phy_device *mdiodev = priv->mdiodev;
--
2.30.2
More information about the barebox
mailing list