File tree Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Expand file tree Collapse file tree 3 files changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -157,7 +157,6 @@ const struct of_device_id
157
157
158
158
return i2c_of_match_device_sysfs (matches , client );
159
159
}
160
- EXPORT_SYMBOL_GPL (i2c_of_match_device );
161
160
162
161
#if IS_ENABLED (CONFIG_OF_DYNAMIC )
163
162
static 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) {
84
84
85
85
#ifdef CONFIG_OF
86
86
void 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
+
87
90
#else
88
91
static 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
+ }
89
98
#endif
90
99
extern struct notifier_block i2c_of_notifier ;
91
100
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
1029
1029
return i2c_get_adapter_by_fwnode (of_fwnode_handle (node ));
1030
1030
}
1031
1031
1032
- const struct of_device_id
1033
- * i2c_of_match_device (const struct of_device_id * matches ,
1034
- struct i2c_client * client );
1035
-
1036
1032
int of_i2c_get_board_info (struct device * dev , struct device_node * node ,
1037
1033
struct i2c_board_info * info );
1038
1034
@@ -1053,13 +1049,6 @@ static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node
1053
1049
return NULL ;
1054
1050
}
1055
1051
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
-
1063
1052
static inline int of_i2c_get_board_info (struct device * dev ,
1064
1053
struct device_node * node ,
1065
1054
struct i2c_board_info * info )
You can’t perform that action at this time.
0 commit comments