1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-10-18 00:11:48 +02:00

i2c: Bugfix in i2c_get_chip_by_phandle()

The "i2cbcdev" sneaked in when implementing this function for the
bootcounter use case. Obviously the intention was to use prop_name
instead.

Fixes: b483552773 (i2c: Implement i2c_get_chip_by_phandle())

Signed-off-by: Philip Oberfichtner <pro@denx.de>
Acked-by: Heiko Schocher <hs@denx.de>
This commit is contained in:
Philip Oberfichtner
2023-11-24 15:04:01 +01:00
committed by Tom Rini
parent 1fcf078f54
commit acae7eb5fe

View File

@@ -427,7 +427,7 @@ int i2c_get_chip_by_phandle(const struct udevice *parent, const char *prop_name,
goto err_exit;
}
ret = dev_read_u32(parent, "i2cbcdev", &phandle);
ret = dev_read_u32(parent, prop_name, &phandle);
if (ret)
goto err_exit;