public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] hwspinlock: Use device_match_of_node()
@ 2022-11-25  7:44 ye.xingchen
  2022-11-25  8:18 ` Baolin Wang
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: ye.xingchen @ 2022-11-25  7:44 UTC (permalink / raw)
  To: andersson; +Cc: ohad, baolin.wang, linux-remoteproc, linux-kernel

From: ye xingchen <ye.xingchen@zte.com.cn>

Replace the open-code with device_match_of_node().

Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
---
 drivers/hwspinlock/hwspinlock_core.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/hwspinlock/hwspinlock_core.c b/drivers/hwspinlock/hwspinlock_core.c
index fd5f5c5a5244..22b8f2a70b3b 100644
--- a/drivers/hwspinlock/hwspinlock_core.c
+++ b/drivers/hwspinlock/hwspinlock_core.c
@@ -367,7 +367,7 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)
 			continue;
 		}

-		if (hwlock->bank->dev->of_node == args.np) {
+		if (device_match_of_node(hwlock->bank->dev, args.np)) {
 			ret = 0;
 			break;
 		}
-- 
2.25.1

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

* Re: [PATCH] hwspinlock: Use device_match_of_node()
  2022-11-25  7:44 [PATCH] hwspinlock: Use device_match_of_node() ye.xingchen
@ 2022-11-25  8:18 ` Baolin Wang
  2022-12-14 14:15 ` Philippe Mathieu-Daudé
  2022-12-28 18:18 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Baolin Wang @ 2022-11-25  8:18 UTC (permalink / raw)
  To: ye.xingchen, andersson; +Cc: ohad, linux-remoteproc, linux-kernel



On 11/25/2022 3:44 PM, ye.xingchen@zte.com.cn wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> Replace the open-code with device_match_of_node().
> 
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>

LGTM.
Reviewed-by: Baolin Wang <baolin.wang@linux.alibaba.com>

> ---
>   drivers/hwspinlock/hwspinlock_core.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/hwspinlock/hwspinlock_core.c b/drivers/hwspinlock/hwspinlock_core.c
> index fd5f5c5a5244..22b8f2a70b3b 100644
> --- a/drivers/hwspinlock/hwspinlock_core.c
> +++ b/drivers/hwspinlock/hwspinlock_core.c
> @@ -367,7 +367,7 @@ int of_hwspin_lock_get_id(struct device_node *np, int index)
>   			continue;
>   		}
> 
> -		if (hwlock->bank->dev->of_node == args.np) {
> +		if (device_match_of_node(hwlock->bank->dev, args.np)) {
>   			ret = 0;
>   			break;
>   		}

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

* Re: [PATCH] hwspinlock: Use device_match_of_node()
  2022-11-25  7:44 [PATCH] hwspinlock: Use device_match_of_node() ye.xingchen
  2022-11-25  8:18 ` Baolin Wang
@ 2022-12-14 14:15 ` Philippe Mathieu-Daudé
  2022-12-28 18:18 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Philippe Mathieu-Daudé @ 2022-12-14 14:15 UTC (permalink / raw)
  To: ye.xingchen, andersson; +Cc: ohad, baolin.wang, linux-remoteproc, linux-kernel

On 25/11/22 08:44, ye.xingchen@zte.com.cn wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> Replace the open-code with device_match_of_node().
> 
> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn>
> ---
>   drivers/hwspinlock/hwspinlock_core.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)

Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>



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

* Re: [PATCH] hwspinlock: Use device_match_of_node()
  2022-11-25  7:44 [PATCH] hwspinlock: Use device_match_of_node() ye.xingchen
  2022-11-25  8:18 ` Baolin Wang
  2022-12-14 14:15 ` Philippe Mathieu-Daudé
@ 2022-12-28 18:18 ` Bjorn Andersson
  2 siblings, 0 replies; 4+ messages in thread
From: Bjorn Andersson @ 2022-12-28 18:18 UTC (permalink / raw)
  To: ye.xingchen; +Cc: linux-kernel, ohad, baolin.wang, linux-remoteproc

On Fri, 25 Nov 2022 15:44:36 +0800 (CST), ye.xingchen@zte.com.cn wrote:
> From: ye xingchen <ye.xingchen@zte.com.cn>
> 
> Replace the open-code with device_match_of_node().
> 
> 

Applied, thanks!

[1/1] hwspinlock: Use device_match_of_node()
      commit: ec5c05e5ac8bcb4a6bcd92970e15494a85400d34

Best regards,
-- 
Bjorn Andersson <andersson@kernel.org>

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

end of thread, other threads:[~2022-12-28 18:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-11-25  7:44 [PATCH] hwspinlock: Use device_match_of_node() ye.xingchen
2022-11-25  8:18 ` Baolin Wang
2022-12-14 14:15 ` Philippe Mathieu-Daudé
2022-12-28 18:18 ` Bjorn Andersson

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