aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/of_i2c.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2013-01-17 16:15:55 -0500
commit8dea78da5cee153b8af9c07a2745f6c55057fe12 (patch)
treea8f4d49d63b1ecc92f2fddceba0655b2472c5bd9 /include/linux/of_i2c.h
parent406089d01562f1e2bf9f089fd7637009ebaad589 (diff)
Patched in Tegra support.
Diffstat (limited to 'include/linux/of_i2c.h')
-rw-r--r--include/linux/of_i2c.h16
1 files changed, 0 insertions, 16 deletions
diff --git a/include/linux/of_i2c.h b/include/linux/of_i2c.h
index cfb545cd86b..0efe8d465f5 100644
--- a/include/linux/of_i2c.h
+++ b/include/linux/of_i2c.h
@@ -20,27 +20,11 @@ extern void of_i2c_register_devices(struct i2c_adapter *adap);
20/* must call put_device() when done with returned i2c_client device */ 20/* must call put_device() when done with returned i2c_client device */
21extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node); 21extern struct i2c_client *of_find_i2c_device_by_node(struct device_node *node);
22 22
23/* must call put_device() when done with returned i2c_adapter device */
24extern struct i2c_adapter *of_find_i2c_adapter_by_node(
25 struct device_node *node);
26
27#else 23#else
28static inline void of_i2c_register_devices(struct i2c_adapter *adap) 24static inline void of_i2c_register_devices(struct i2c_adapter *adap)
29{ 25{
30 return; 26 return;
31} 27}
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}
44#endif /* CONFIG_OF_I2C */ 28#endif /* CONFIG_OF_I2C */
45 29
46#endif /* __LINUX_OF_I2C_H */ 30#endif /* __LINUX_OF_I2C_H */