diff options
author | Philip Oberfichtner <pro@denx.de> | 2023-11-24 15:04:01 +0100 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-11-27 18:54:56 -0500 |
commit | acae7eb5fe063dcfe2dbdb1e1804cf3e12cc2f3f (patch) | |
tree | b06556fc9cbecde16495ad7047ed00f3b47ca8ab | |
parent | 1fcf078f540cf1e3ce4803cdbe8ac7fdd1e2f4cc (diff) | |
download | u-boot-acae7eb5fe063dcfe2dbdb1e1804cf3e12cc2f3f.zip u-boot-acae7eb5fe063dcfe2dbdb1e1804cf3e12cc2f3f.tar.gz u-boot-acae7eb5fe063dcfe2dbdb1e1804cf3e12cc2f3f.tar.bz2 |
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>
-rw-r--r-- | drivers/i2c/i2c-uclass.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/i2c/i2c-uclass.c b/drivers/i2c/i2c-uclass.c index 5405067..98f9585 100644 --- a/drivers/i2c/i2c-uclass.c +++ b/drivers/i2c/i2c-uclass.c @@ -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; |