[PATCH] ARM: i.MX: iim: Fix imx_iim_reg_write() return type
Sascha Hauer
s.hauer at pengutronix.de
Tue Apr 4 03:46:03 PDT 2023
struct regmap_bus::reg_write should return int, not ssize_t.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
arch/arm/mach-imx/iim.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/arm/mach-imx/iim.c b/arch/arm/mach-imx/iim.c
index d403fa9f86..092cf5bcd3 100644
--- a/arch/arm/mach-imx/iim.c
+++ b/arch/arm/mach-imx/iim.c
@@ -291,7 +291,7 @@ err_out:
return ret;
}
-static ssize_t imx_iim_reg_write(void *ctx, unsigned int reg, unsigned int val)
+static int imx_iim_reg_write(void *ctx, unsigned int reg, unsigned int val)
{
struct iim_bank *bank = ctx;
--
2.39.2
More information about the barebox
mailing list