|
@@ -20,6 +20,10 @@ extern void of_i2c_register_devices(struct i2c_adapter *adap);
|
|
/* must call put_device() when done with returned i2c_client device */
|
|
/* must call put_device() when done with returned i2c_client device */
|
|
extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
|
|
extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
|
|
|
|
|
|
|
|
+/* must call put_device() when done with returned i2c_adapter device */
|
|
|
|
+extern struct i2c_adapter *of_find_i2c_adapter_by_node(
|
|
|
|
+ struct device_node *node);
|
|
|
|
+
|
|
#else
|
|
#else
|
|
static inline void of_i2c_register_devices(struct i2c_adapter *adap)
|
|
static inline void of_i2c_register_devices(struct i2c_adapter *adap)
|
|
{
|
|
{
|