diff options
| author | Philip Oberfichtner <[email protected]> | 2023-11-24 15:04:01 +0100 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-11-27 18:54:56 -0500 |
| commit | acae7eb5fe063dcfe2dbdb1e1804cf3e12cc2f3f (patch) | |
| tree | b06556fc9cbecde16495ad7047ed00f3b47ca8ab | |
| parent | 1fcf078f540cf1e3ce4803cdbe8ac7fdd1e2f4cc (diff) | |
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 <[email protected]>
Acked-by: Heiko Schocher <[email protected]>
| -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 5405067861e..98f95859f3b 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; |
