Skip to contentSkip to conversation

i2c: omap24xx_i2c: remove unused members of struct omap_i2c

PATCH In review Rasmus Villemoes 3 participants 3 messages Aug 15, 2025 – Aug 25, 2025 I2C

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 i2c: omap24xx_i2c: remove unused members of struct omap_i2c

The clk and clk_id members of struct omap_i2c are not used anywhere, and AFAICT never have been.

---
 drivers/i2c/omap24xx_i2c.c | 2 --
 1 file changed, 2 deletions(-)
drivers/i2c/omap24xx_i2c.c +0 -2
index a6361d3d17d..2c6f8ea5901 100644
@@ -134,12 +134,10 @@ static const u8 __maybe_unused reg_map_ip_v2[] = {
 };
 
 struct omap_i2c {
-	struct udevice *clk;
 	int ip_rev;
 	struct i2c *regs;
 	unsigned int speed;
 	int waitdelay;
-	int clk_id;
 };
 
 static inline const u8 *omap_i2c_get_ip_reg_map(int ip_rev)
Signature · 1 line
2.50.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 5 lines · Rasmus Villemoes

The clk and clk_id members of struct omap_i2c are not used anywhere, and AFAICT never have been.

---

Looks good to me,

Quoted 20 lines
  drivers/i2c/omap24xx_i2c.c | 2 --
  1 file changed, 2 deletions(-)
drivers/i2c/omap24xx_i2c.c +0 -2
index a6361d3d17d..2c6f8ea5901 100644
@@ -134,12 +134,10 @@ static const u8 __maybe_unused reg_map_ip_v2[] = {
  };
 
  struct omap_i2c {
-	struct udevice *clk;
  	int ip_rev;
  	struct i2c *regs;
  	unsigned int speed;
  	int waitdelay;
-	int clk_id;
  };
 
  static inline const u8 *omap_i2c_get_ip_reg_map(int ip_rev)
#2 lore raw
In reply to Rasmus Villemoes
Quoted 4 lines · Rasmus Villemoes

The clk and clk_id members of struct omap_i2c are not used anywhere, and AFAICT never have been.

Applied to u-boot/next, thanks!

[1/1] i2c: omap24xx_i2c: remove unused members of struct omap_i2c

      commit: 91595c96a53360dce696c2da694b1983c91d64f6
Signature · 1 line
Tom