diff options
| -rw-r--r-- | drivers/of/base.c | 2 | ||||
| -rw-r--r-- | include/linux/of.h | 2 | ||||
| -rw-r--r-- | include/linux/of_i2c.h | 12 |
3 files changed, 14 insertions, 2 deletions
diff --git a/drivers/of/base.c b/drivers/of/base.c index 538e3cfad23e..be846408dbc1 100644 --- a/drivers/of/base.c +++ b/drivers/of/base.c | |||
| @@ -1025,7 +1025,7 @@ EXPORT_SYMBOL(of_parse_phandle); | |||
| 1025 | * To get a device_node of the `node2' node you may call this: | 1025 | * To get a device_node of the `node2' node you may call this: |
| 1026 | * of_parse_phandle_with_args(node3, "list", "#list-cells", 1, &args); | 1026 | * of_parse_phandle_with_args(node3, "list", "#list-cells", 1, &args); |
| 1027 | */ | 1027 | */ |
| 1028 | int of_parse_phandle_with_args(struct device_node *np, const char *list_name, | 1028 | int of_parse_phandle_with_args(const struct device_node *np, const char *list_name, |
| 1029 | const char *cells_name, int index, | 1029 | const char *cells_name, int index, |
| 1030 | struct of_phandle_args *out_args) | 1030 | struct of_phandle_args *out_args) |
| 1031 | { | 1031 | { |
diff --git a/include/linux/of.h b/include/linux/of.h index 60053bd7e79a..6cfea9aa401f 100644 --- a/include/linux/of.h +++ b/include/linux/of.h | |||
| @@ -273,7 +273,7 @@ extern int of_modalias_node(struct device_node *node, char *modalias, int len); | |||
| 273 | extern struct device_node *of_parse_phandle(const struct device_node *np, | 273 | extern struct device_node *of_parse_phandle(const struct device_node *np, |
| 274 | const char *phandle_name, | 274 | const char *phandle_name, |
| 275 | int index); | 275 | int index); |
| 276 | extern int of_parse_phandle_with_args(struct device_node *np, | 276 | extern int of_parse_phandle_with_args(const struct device_node *np, |
| 277 | const char *list_name, const char *cells_name, int index, | 277 | const char *list_name, const char *cells_name, int index, |
| 278 | struct of_phandle_args *out_args); | 278 | struct of_phandle_args *out_args); |
| 279 | 279 | ||
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 | |||
| 33 | static 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 */ | ||
| 39 | static 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 */ |
