mirror of https://github.com/torvalds/linux.git
i2c: Unexport i2c_of_match_device()
i2c_of_match_device() is not used anymore outside of I²C framework, unexport it. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Vladimir Zapolskiy <vladimir.zapolskiy@linaro.org> Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
This commit is contained in:
parent
c6250d0eab
commit
fbc54ae4f8
|
|
@ -157,7 +157,6 @@ const struct of_device_id
|
||||||
|
|
||||||
return i2c_of_match_device_sysfs(matches, client);
|
return i2c_of_match_device_sysfs(matches, client);
|
||||||
}
|
}
|
||||||
EXPORT_SYMBOL_GPL(i2c_of_match_device);
|
|
||||||
|
|
||||||
#if IS_ENABLED(CONFIG_OF_DYNAMIC)
|
#if IS_ENABLED(CONFIG_OF_DYNAMIC)
|
||||||
static int of_i2c_notify(struct notifier_block *nb, unsigned long action,
|
static int of_i2c_notify(struct notifier_block *nb, unsigned long action,
|
||||||
|
|
|
||||||
|
|
@ -84,8 +84,17 @@ static inline void i2c_acpi_remove_space_handler(struct i2c_adapter *adapter) {
|
||||||
|
|
||||||
#ifdef CONFIG_OF
|
#ifdef CONFIG_OF
|
||||||
void of_i2c_register_devices(struct i2c_adapter *adap);
|
void of_i2c_register_devices(struct i2c_adapter *adap);
|
||||||
|
const struct of_device_id *i2c_of_match_device(const struct of_device_id *matches,
|
||||||
|
struct i2c_client *client);
|
||||||
|
|
||||||
#else
|
#else
|
||||||
static inline void of_i2c_register_devices(struct i2c_adapter *adap) { }
|
static inline void of_i2c_register_devices(struct i2c_adapter *adap) { }
|
||||||
|
static inline
|
||||||
|
const struct of_device_id *i2c_of_match_device(const struct of_device_id *matches,
|
||||||
|
struct i2c_client *client)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
extern struct notifier_block i2c_of_notifier;
|
extern struct notifier_block i2c_of_notifier;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1029,10 +1029,6 @@ static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node
|
||||||
return i2c_get_adapter_by_fwnode(of_fwnode_handle(node));
|
return i2c_get_adapter_by_fwnode(of_fwnode_handle(node));
|
||||||
}
|
}
|
||||||
|
|
||||||
const struct of_device_id
|
|
||||||
*i2c_of_match_device(const struct of_device_id *matches,
|
|
||||||
struct i2c_client *client);
|
|
||||||
|
|
||||||
int of_i2c_get_board_info(struct device *dev, struct device_node *node,
|
int of_i2c_get_board_info(struct device *dev, struct device_node *node,
|
||||||
struct i2c_board_info *info);
|
struct i2c_board_info *info);
|
||||||
|
|
||||||
|
|
@ -1053,13 +1049,6 @@ static inline struct i2c_adapter *of_get_i2c_adapter_by_node(struct device_node
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline const struct of_device_id
|
|
||||||
*i2c_of_match_device(const struct of_device_id *matches,
|
|
||||||
struct i2c_client *client)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline int of_i2c_get_board_info(struct device *dev,
|
static inline int of_i2c_get_board_info(struct device *dev,
|
||||||
struct device_node *node,
|
struct device_node *node,
|
||||||
struct i2c_board_info *info)
|
struct i2c_board_info *info)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue