power: pmic: s2mps11: look for both {voltage-,}regulators
authorHenrik Grimler <henrik@grimler.se>
Fri, 22 Aug 2025 18:33:23 +0000 (20:33 +0200)
committerPeng Fan <peng.fan@nxp.com>
Mon, 1 Sep 2025 02:33:06 +0000 (10:33 +0800)
commit38443338c7d491852d21d6c5e7e742fc347b9a44
tree8f1cdb652b71c5457f9749528c7f099449c4409b
parentdc0a12fecea789de83015319f3e9aeddd0a824a2
power: pmic: s2mps11: look for both {voltage-,}regulators

Linux's DTSes uses regulators { }; while u-boot's DTSes uses
voltage-regulators { };.  Look for regulators, and fallback to
voltage-regulators if not found, so that both type of DTSes can be
used with the driver.

Signed-off-by: Henrik Grimler <henrik@grimler.se>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
drivers/power/pmic/s2mps11.c