hwspinlock: Use device_match_of_node()
PATCH 1/1 hwspinlock: Use device_match_of_node()
From: ye xingchen <[email protected]>
Replace the open-code with device_match_of_node().
Signed-off-by ye xingchen <[email protected]>
--- drivers/hwspinlock/hwspinlock_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/hwspinlock/hwspinlock_core.c +1 -1
@@ -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 ; }
Signature · 1 line
2.25.1
Quoted 5 lines · On 11/25/2022 3:44 PM, [email protected] wrote:
From: ye xingchen <[email protected]>
Replace the open-code with
device_match_of_node().Signed-off-by ye xingchen <[email protected]>
LGTM.
Reviewed-by Baolin Wang <[email protected]>
Quoted 17 lines
--- drivers/hwspinlock/hwspinlock_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/hwspinlock/hwspinlock_core.c +1
-1@@ -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 ; }
Quoted 8 lines · On 25/11/22 08:44, [email protected] wrote:
From: ye xingchen <[email protected]>
Replace the open-code with
device_match_of_node().Signed-off-by ye xingchen <[email protected]>--- drivers/hwspinlock/hwspinlock_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by Philippe Mathieu-Daudé <[email protected]>
Quoted 5 lines · On Fri, 25 Nov 2022 15:44:36 +0800 (CST), [email protected] wrote:
From: ye xingchen <[email protected]>
Replace the open-code with
device_match_of_node().
Applied, thanks!
[1/1] hwspinlock: Use device_match_of_node()
commit: ec5c05e5ac8bcb4a6bcd92970e15494a85400d34
Best regards,
Signature · 1 line
Bjorn Andersson <[email protected]>