mbox series

[-next,v2,0/2] of: introduce of_address_count() helper

Message ID 20221008115617.3583890-1-yangyingliang@huawei.com
Headers show
Series of: introduce of_address_count() helper | expand

Message

Yang Yingliang Oct. 8, 2022, 11:56 a.m. UTC
Introduce of_address_count() helper to count the IO resources, so
some drivers can use it instead of open-coding.

E.g. irq-orion and tegra194-cbb.

v1 -> v2:
  patch #1, make of_address_count() inline in of_address.h

Yang Yingliang (2):
  of/address: introduce of_address_count() helper
  of/platform: use of_address_count() helper

 drivers/of/platform.c      |  5 ++---
 include/linux/of_address.h | 11 +++++++++++
 2 files changed, 13 insertions(+), 3 deletions(-)