i2c: Port of_find_i2c_device_by_node() from Linux
Port of_find_i2c_device_by_node() from Linux in order to allow looking
i2c_client up by corresponding DT node. Useful for interacting with
identical raw/driverless I2C devices that are not found on the same
bus between board variants.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 1a414ba commit 1437676f8cdf8fafd3269e364fc06f996acc0aad
@Andrey Smirnov Andrey Smirnov authored on 31 Mar 2020
Sascha Hauer committed on 1 Apr 2020
Showing 2 changed files
View
drivers/i2c/i2c.c
View
include/i2c/i2c.h