]> git.dujemihanovic.xyz Git - u-boot.git/commit
i2c: Implement i2c_get_chip_by_phandle()
authorPhilip Richard Oberfichtner <pro@denx.de>
Tue, 31 Oct 2023 07:38:46 +0000 (08:38 +0100)
committerHeiko Schocher <hs@denx.de>
Tue, 31 Oct 2023 08:08:51 +0000 (09:08 +0100)
commitb48355277340f156f387c31da5a0b8937643c54f
tree593065b5e85ade9b428efe5bfdbe85a69772b37c
parent31f4ee4b13d974ba4b973211eeb57db70bc5ea77
i2c: Implement i2c_get_chip_by_phandle()

This new function enhances the i2c_get_chip*() toolbox by implementing a
variant that does not require a chip_addr. Instead, the desired device
is pointed to by a phandle.

Signed-off-by: Philip Richard Oberfichtner <pro@denx.de>
Reviewed-by: Heiko Schocher <hs@denx.de>
drivers/i2c/i2c-uclass.c
include/i2c.h