|
@@ -774,6 +774,10 @@ 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);
|
|
|
|
|
|
+extern const struct of_device_id
|
|
|
+*i2c_of_match_device(const struct of_device_id *matches,
|
|
|
+ struct i2c_client *client);
|
|
|
+
|
|
|
#else
|
|
|
|
|
|
static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node)
|
|
@@ -790,6 +794,14 @@ static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node
|
|
|
{
|
|
|
return NULL;
|
|
|
}
|
|
|
+
|
|
|
+static inline const struct of_device_id
|
|
|
+*i2c_of_match_device(const struct of_device_id *matches,
|
|
|
+ struct i2c_client *client)
|
|
|
+{
|
|
|
+ return NULL;
|
|
|
+}
|
|
|
+
|
|
|
#endif /* CONFIG_OF */
|
|
|
|
|
|
#if IS_ENABLED(CONFIG_ACPI)
|