public inbox for linux-rockchip@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
       [not found] <20220214060819.7334-1-yong.wu@mediatek.com>
@ 2022-02-14  6:08 ` Yong Wu
  2022-02-14  8:03   ` Heiko Stübner
  0 siblings, 1 reply; 2+ messages in thread
From: Yong Wu @ 2022-02-14  6:08 UTC (permalink / raw)
  To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel
  Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
	Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
	Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
	linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
	Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
	Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
	Sandy Huang, Heiko St¨¹bner, linux-rockchip

Use the common compare helper from component.

Cc: Sandy Huang <hjc@rock-chips.com>
Cc: "Heiko St¨¹bner" <heiko@sntech.de>
Cc: linux-rockchip@lists.infradead.org
Signed-off-by: Yong Wu <yong.wu@mediatek.com>
---
 drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
index bec207de4544..3c2f2d6ecc36 100644
--- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
+++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
@@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
 	return false;
 }
 
-static int compare_dev(struct device *dev, void *data)
-{
-	return dev == (struct device *)data;
-}
-
 static void rockchip_drm_match_remove(struct device *dev)
 {
 	struct device_link *link;
@@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
 				break;
 
 			device_link_add(dev, d, DL_FLAG_STATELESS);
-			component_match_add(dev, &match, compare_dev, d);
+			component_match_add(dev, &match, component_compare_dev, d);
 		} while (true);
 	}
 
-- 
2.18.0


_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev
  2022-02-14  6:08 ` [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev Yong Wu
@ 2022-02-14  8:03   ` Heiko Stübner
  0 siblings, 0 replies; 2+ messages in thread
From: Heiko Stübner @ 2022-02-14  8:03 UTC (permalink / raw)
  To: Greg Kroah-Hartman, David Airlie, Daniel Vetter, dri-devel,
	Yong Wu
  Cc: James Wang, Liviu Dudau, iommu, Matthias Brugger,
	Krzysztof Kozlowski, linux-kernel, Joerg Roedel, Will Deacon,
	Arnd Bergmann, Laurent Pinchart, linux-mediatek, Chun-Kuang Hu,
	linux-arm-kernel, Stephen Boyd, AngeloGioacchino Del Regno,
	Hsin-Yi Wang, Robin Murphy, Tomasz Figa, srv_heupstream,
	Rob Clark, Srinivas Kandagatla, Sebastian Reichel, Yong Wu,
	Sandy Huang, linux-rockchip

Am Montag, 14. Februar 2022, 07:08:09 CET schrieb Yong Wu:
> Use the common compare helper from component.
> 
> Cc: Sandy Huang <hjc@rock-chips.com>
> Cc: "Heiko St¨¹bner" <heiko@sntech.de>
> Cc: linux-rockchip@lists.infradead.org
> Signed-off-by: Yong Wu <yong.wu@mediatek.com>

Acked-by: Heiko Stuebner <heiko@sntech.de>

> ---
>  drivers/gpu/drm/rockchip/rockchip_drm_drv.c | 7 +------
>  1 file changed, 1 insertion(+), 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> index bec207de4544..3c2f2d6ecc36 100644
> --- a/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> +++ b/drivers/gpu/drm/rockchip/rockchip_drm_drv.c
> @@ -290,11 +290,6 @@ int rockchip_drm_endpoint_is_subdriver(struct device_node *ep)
>  	return false;
>  }
>  
> -static int compare_dev(struct device *dev, void *data)
> -{
> -	return dev == (struct device *)data;
> -}
> -
>  static void rockchip_drm_match_remove(struct device *dev)
>  {
>  	struct device_link *link;
> @@ -321,7 +316,7 @@ static struct component_match *rockchip_drm_match_add(struct device *dev)
>  				break;
>  
>  			device_link_add(dev, d, DL_FLAG_STATELESS);
> -			component_match_add(dev, &match, compare_dev, d);
> +			component_match_add(dev, &match, component_compare_dev, d);
>  		} while (true);
>  	}
>  
> 





_______________________________________________
Linux-rockchip mailing list
Linux-rockchip@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-rockchip

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-02-14  8:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20220214060819.7334-1-yong.wu@mediatek.com>
2022-02-14  6:08 ` [PATCH 13/23] drm/rockchip: Make use of the helper component_compare_dev Yong Wu
2022-02-14  8:03   ` Heiko Stübner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox