|
@@ -638,6 +638,8 @@ 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 */
|
|
/* 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);
|
|
extern struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node *node);
|
|
|
|
|
|
|
|
+/* must call i2c_put_adapter() when done with returned i2c_adapter device */
|
|
|
|
+struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node *node);
|
|
#else
|
|
#else
|
|
|
|
|
|
static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node)
|
|
static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node)
|
|
@@ -649,6 +651,11 @@ static inline struct i2c_adapter *of_find_i2c_adapter_by_node(struct device_node
|
|
{
|
|
{
|
|
return NULL;
|
|
return NULL;
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node *node)
|
|
|
|
+{
|
|
|
|
+ return NULL;
|
|
|
|
+}
|
|
#endif /* CONFIG_OF */
|
|
#endif /* CONFIG_OF */
|
|
|
|
|
|
#endif /* _LINUX_I2C_H */
|
|
#endif /* _LINUX_I2C_H */
|