[PATCH] i2c: omap: fix hw version parsing
From: Andreas Kemnade
Date: Wed Oct 21 2026 - 11:59:24 EST
Fix a simple typo to avoid showing confusing chip version.
Signed-off-by: Andreas Kemnade <andreas@xxxxxxxxxxxx>
---
drivers/i2c/busses/i2c-omap.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-omap.c b/drivers/i2c/busses/i2c-omap.c
index f02d294db42a..bd659dfa702f 100644
--- a/drivers/i2c/busses/i2c-omap.c
+++ b/drivers/i2c/busses/i2c-omap.c
@@ -1407,7 +1407,7 @@ omap_i2c_probe(struct platform_device *pdev)
case OMAP_I2C_SCHEME_0:
omap->regs = (u8 *)reg_map_ip_v1;
omap->rev = omap_i2c_read_reg(omap, OMAP_I2C_REV_REG);
- minor = OMAP_I2C_REV_SCHEME_0_MAJOR(omap->rev);
+ minor = OMAP_I2C_REV_SCHEME_0_MINOR(omap->rev);
major = OMAP_I2C_REV_SCHEME_0_MAJOR(omap->rev);
break;
case OMAP_I2C_SCHEME_1:
--
2.47.3