[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220214060819.7334-23-yong.wu@mediatek.com>
Date: Mon, 14 Feb 2022 14:08:18 +0800
From: Yong Wu <yong.wu@...iatek.com>
To: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
David Airlie <airlied@...ux.ie>,
Daniel Vetter <daniel@...ll.ch>,
<dri-devel@...ts.freedesktop.org>
CC: James Wang <james.qian.wang@....com>,
Liviu Dudau <liviu.dudau@....com>,
<iommu@...ts.linux-foundation.org>,
Matthias Brugger <matthias.bgg@...il.com>,
Krzysztof Kozlowski <krzysztof.kozlowski@...onical.com>,
<linux-kernel@...r.kernel.org>, "Joerg Roedel" <joro@...tes.org>,
Will Deacon <will@...nel.org>, Arnd Bergmann <arnd@...db.de>,
Laurent Pinchart <laurent.pinchart@...asonboard.com>,
<linux-mediatek@...ts.infradead.org>,
Chun-Kuang Hu <chunkuang.hu@...nel.org>,
<linux-arm-kernel@...ts.infradead.org>,
"Stephen Boyd" <sboyd@...nel.org>,
AngeloGioacchino Del Regno
<angelogioacchino.delregno@...labora.com>,
Hsin-Yi Wang <hsinyi@...omium.org>,
Robin Murphy <robin.murphy@....com>,
Tomasz Figa <tfiga@...omium.org>,
<srv_heupstream@...iatek.com>, Rob Clark <robdclark@...il.com>,
Srinivas Kandagatla <srinivas.kandagatla@...aro.org>,
Sebastian Reichel <sre@...nel.org>,
Yong Wu <yong.wu@...iatek.com>, "Helge Deller" <deller@....de>,
<linux-omap@...r.kernel.org>, <linux-fbdev@...r.kernel.org>
Subject: [PATCH 22/23] video: omapfb: dss: Make use of the helper component_compare_dev
Use the common compare helper from component.
Cc: Helge Deller <deller@....de>
Cc: linux-omap@...r.kernel.org
Cc: linux-fbdev@...r.kernel.org
Signed-off-by: Yong Wu <yong.wu@...iatek.com>
---
drivers/video/fbdev/omap2/omapfb/dss/dss.c | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/drivers/video/fbdev/omap2/omapfb/dss/dss.c b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
index a6b1c1598040..45b9d3cf3860 100644
--- a/drivers/video/fbdev/omap2/omapfb/dss/dss.c
+++ b/drivers/video/fbdev/omap2/omapfb/dss/dss.c
@@ -1193,12 +1193,6 @@ static const struct component_master_ops dss_component_ops = {
.unbind = dss_unbind,
};
-static int dss_component_compare(struct device *dev, void *data)
-{
- struct device *child = data;
- return dev == child;
-}
-
static int dss_add_child_component(struct device *dev, void *data)
{
struct component_match **match = data;
@@ -1212,7 +1206,7 @@ static int dss_add_child_component(struct device *dev, void *data)
if (strstr(dev_name(dev), "rfbi"))
return 0;
- component_match_add(dev->parent, match, dss_component_compare, dev);
+ component_match_add(dev->parent, match, component_compare_dev, dev);
return 0;
}
--
2.18.0
Powered by blists - more mailing lists