aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_i2c.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/of_i2c.h')
-rw-r--r--include/linux/of_i2c.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/include/linux/of_i2c.h b/include/linux/of_i2c.h
index 1cb775f8e663..cfb545cd86b5 100644
--- a/include/linux/of_i2c.h
+++ b/include/linux/of_i2c.h
@@ -29,6 +29,18 @@ static inline void of_i2c_register_devices(struct i2c_adapter *adap)
29{ 29{
30 return; 30 return;
31} 31}
32
33static inline struct i2c_client *of_find_i2c_device_by_node(struct device_node *node)
34{
35 return NULL;
36}
37
38/* must call put_device() when done with returned i2c_adapter device */
39static inline struct i2c_adapter *of_find_i2c_adapter_by_node(
40 struct device_node *node)
41{
42 return NULL;
43}
32#endif /* CONFIG_OF_I2C */ 44#endif /* CONFIG_OF_I2C */
33 45
34#endif /* __LINUX_OF_I2C_H */ 46#endif /* __LINUX_OF_I2C_H */