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)
committerJason Liu <jason.hui.liu@nxp.com>
Thu, 2 Nov 2017 18:37:05 +0000 (02:37 +0800)
commitf5fcb1903d935c2e1037b6a1fc61f1c290818727
treec08d625671adafe55afb88b80efa36c2b1b3dfd0
parent19c5632dc481d0fe983a4699d263bc9fc14edfcf
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>
drivers/power/domain/power-domain-uclass.c
include/power-domain.h