of/address: introduce of_address_count() helper
authorYang Yingliang <yangyingliang@huawei.com>
Sat, 8 Oct 2022 11:56:16 +0000 (19:56 +0800)
committerRob Herring <robh@kernel.org>
Sun, 16 Oct 2022 22:58:54 +0000 (17:58 -0500)
commit16988c742968d5ceb2e832a57bd277f51f0a59d7
treee208c02db6f827befef8ceb69dec98f169480959
parent9abf2313adc1ca1b6180c508c25f22f9395cc780
of/address: introduce of_address_count() helper

Introduce of_address_count() helper to count the IO resources
instead of open-coding it.

Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Link: https://lore.kernel.org/r/20221008115617.3583890-2-yangyingliang@huawei.com
Signed-off-by: Rob Herring <robh@kernel.org>
include/linux/of_address.h