]> git.ipfire.org Git - thirdparty/u-boot.git/commit
cmd: i2c: fix build when CFG_SYS_I2C_NOPROBES defined with DM_I2C
authorHolger Brunck <holger.brunck@hitachienergy.com>
Mon, 14 Jul 2025 11:56:08 +0000 (13:56 +0200)
committerHeiko Schocher <hs@denx.de>
Wed, 16 Jul 2025 07:21:03 +0000 (09:21 +0200)
commit070c48fdb648716682cc7db8887856ce4d247a9a
treeea65d1be9df570305534966c178439c183dabf7e
parentfb988164399c562aed7115f13ce7fa64458ee3aa
cmd: i2c: fix build when CFG_SYS_I2C_NOPROBES defined with DM_I2C

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@hitachienergy.com>
cmd/i2c.c