mbox series

[0/2] Some cleanup with use of helper functions

Message ID 20240821034022.27394-1-zhangzekun11@huawei.com
Headers show
Series Some cleanup with use of helper functions | expand

Message

Zhang Zekun Aug. 21, 2024, 3:40 a.m. UTC
Using for_each_available_child_of_node() and scoped of_node_put() to
do some cleanup, this can make code more simple.

Zhang Zekun (2):
  pmdomain: qcom-cpr: Use helper function
    for_each_available_child_of_node()
  pmdomain: qcom-cpr: Use scope based of_node_put() to simplify code.

 drivers/pmdomain/qcom/cpr.c | 34 ++++++++++++++--------------------
 1 file changed, 14 insertions(+), 20 deletions(-)

Comments

Ulf Hansson Sept. 13, 2024, 12:01 p.m. UTC | #1
On Wed, 21 Aug 2024 at 05:53, Zhang Zekun <zhangzekun11@huawei.com> wrote:
>
> Using for_each_available_child_of_node() and scoped of_node_put() to
> do some cleanup, this can make code more simple.
>
> Zhang Zekun (2):
>   pmdomain: qcom-cpr: Use helper function
>     for_each_available_child_of_node()
>   pmdomain: qcom-cpr: Use scope based of_node_put() to simplify code.
>
>  drivers/pmdomain/qcom/cpr.c | 34 ++++++++++++++--------------------
>  1 file changed, 14 insertions(+), 20 deletions(-)
>
> --
> 2.17.1
>

The series applied for next, thanks!

Kind regards
Uffe