File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ const struct of_device_id
157157
158158 return i2c_of_match_device_sysfs (matches , client );
159159}
160- EXPORT_SYMBOL_GPL (i2c_of_match_device );
161160
162161#if IS_ENABLED (CONFIG_OF_DYNAMIC )
163162static int of_i2c_notify (struct notifier_block * nb , unsigned long action ,
Original file line number Diff line number Diff line change @@ -84,8 +84,17 @@ static inline void i2c_acpi_remove_space_handler(struct i2c_adapter *adapter) {
8484
8585#ifdef CONFIG_OF
8686void of_i2c_register_devices (struct i2c_adapter * adap );
87+ const struct of_device_id * i2c_of_match_device (const struct of_device_id * matches ,
88+ struct i2c_client * client );
89+
8790#else
8891static inline void of_i2c_register_devices (struct i2c_adapter * adap ) { }
92+ static inline
93+ const struct of_device_id * i2c_of_match_device (const struct of_device_id * matches ,
94+ struct i2c_client * client )
95+ {
96+ return NULL ;
97+ }
8998#endif
9099extern struct notifier_block i2c_of_notifier ;
91100
Original file line number Diff line number Diff line change @@ -1029,10 +1029,6 @@ static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node
10291029 return i2c_get_adapter_by_fwnode (of_fwnode_handle (node ));
10301030}
10311031
1032- const struct of_device_id
1033- * i2c_of_match_device (const struct of_device_id * matches ,
1034- struct i2c_client * client );
1035-
10361032int of_i2c_get_board_info (struct device * dev , struct device_node * node ,
10371033 struct i2c_board_info * info );
10381034
@@ -1053,13 +1049,6 @@ static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node
10531049 return NULL ;
10541050}
10551051
1056- static inline const struct of_device_id
1057- * i2c_of_match_device (const struct of_device_id * matches ,
1058- struct i2c_client * client )
1059- {
1060- return NULL ;
1061- }
1062-
10631052static inline int of_i2c_get_board_info (struct device * dev ,
10641053 struct device_node * node ,
10651054 struct i2c_board_info * info )
You can’t perform that action at this time.
0 commit comments