提交 419838bc 编写于 作者: Y Yong Wu 提交者: Greg Kroah-Hartman

drm/omap: dss: Make use of the helper component_compare_dev

Use the common compare helper from component.

Cc: Tomi Valkeinen <tomba@kernel.org>
Cc: Cai Huoqing <caihuoqing@baidu.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: NYong Wu <yong.wu@mediatek.com>
Link: https://lore.kernel.org/r/20220214060819.7334-17-yong.wu@mediatek.comSigned-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 f8b3f5e8
...@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = { ...@@ -1344,12 +1344,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind, .unbind = dss_unbind,
}; };
static int dss_component_compare(struct device *dev, void *data)
{
struct device *child = data;
return dev == child;
}
struct dss_component_match_data { struct dss_component_match_data {
struct device *dev; struct device *dev;
struct component_match **match; struct component_match **match;
...@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data) ...@@ -1379,7 +1373,7 @@ static int dss_add_child_component(struct device *dev, void *data)
return device_for_each_child(dev, cmatch, return device_for_each_child(dev, cmatch,
dss_add_child_component); dss_add_child_component);
component_match_add(cmatch->dev, match, dss_component_compare, dev); component_match_add(cmatch->dev, match, component_compare_dev, dev);
return 0; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册