MLK-16118-2 power: Add PD device lookup interface to power domain uclass
authorYe Li <ye.li@nxp.com>
Wed, 2 Aug 2017 02:47:53 +0000 (21:47 -0500)
committerYe Li <ye.li@nxp.com>
Fri, 24 May 2019 08:48:14 +0000 (01:48 -0700)
commit388d2adeecbaae91306e1df4ee0461aefe22e589
treeb630c0ad62ce28598dee1ea4f35560b990c25616
parente5515b9593fb7e74598fe744d7b1e355c5b904df
MLK-16118-2 power: Add PD device lookup interface to power domain uclass

Add power_domain_lookup_name interface to power domain uclass to find
a power domain device by its DTB node name, not using its associated
client device.

Through this interface, we can operate the power domain devices directly.
This is needed for non-DM drivers.

Reviewed-by: Peng Fan <peng.fan@nxp.com>
Signed-off-by: Ye Li <ye.li@nxp.com>
(cherry picked from commit f5fcb1903d935c2e1037b6a1fc61f1c290818727)
(cherry picked from commit 68b9f562f46bbecdd11643bacc70fe3cd2e1243c)
drivers/power/domain/power-domain-uclass.c
include/power-domain.h