[PATCH] cmd: i2c: fix build when CFG_SYS_I2C_NOPROBES defined with DM_I2C

Heiko Schocher hs at denx.de
Thu Jul 17 08:07:23 CEST 2025


Hello Holger,

On 14.07.25 13:56, Holger Brunck wrote:
> When DM_I2C is enabled and CFG_SYS_I2C_NOPROBES is defined, the
> building is broken due to already existing 'bus' local variable.
> Rename udevice 'bus' to 'cur_bus' to fix this.
> 
> Signed-off-by: Holger Brunck <holger.brunck at hitachienergy.com>
> ---
>   cmd/i2c.c | 6 +++---
>   1 file changed, 3 insertions(+), 3 deletions(-)

applied to u-boot-i2c.git master, thanks!

bye,
Heiko
-- 
-- 
DENX Software Engineering GmbH, Managing Director: Johanna Denk, Tabea Lutz
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-52   Fax: +49-8142-66989-80   Email: hs at denx.de


More information about the U-Boot mailing list