mfd: bcm2835-pm: Use 'reg-names' to get resources
authorNicolas Saenz Julienne <nsaenzjulienne@suse.de>
Sat, 25 Jun 2022 11:36:14 +0000 (13:36 +0200)
committerLee Jones <lee.jones@linaro.org>
Mon, 4 Jul 2022 10:41:27 +0000 (11:41 +0100)
commit01e7865d18d53f7d736e04618037760a00c28448
tree01e5ef5d9cd228d8a136eabac8aff33b72a3edf0
parentf2906aa863381afb0015a9eb7fefad885d4e5a56
mfd: bcm2835-pm: Use 'reg-names' to get resources

If available in firmware, find resources by their 'reg-names' position
instead of relying on hardcoded offsets. Care is taken to support old
firmware nonetheless.

Signed-off-by: Nicolas Saenz Julienne <nsaenzjulienne@suse.de>
Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Link: https://lore.kernel.org/r/20220625113619.15944-7-stefan.wahren@i2se.com
drivers/mfd/bcm2835-pm.c