]> git.dujemihanovic.xyz Git - u-boot.git/commit
power_domain: Add power_domain_get_by_name()
authorMarek Vasut <marex@denx.de>
Tue, 12 Apr 2022 22:42:52 +0000 (00:42 +0200)
committerStefano Babic <sbabic@denx.de>
Thu, 21 Apr 2022 10:44:23 +0000 (12:44 +0200)
commit63c390a1eac72bcf46d0b61d69c570fe5e48177d
treef7f8c89368abe6f93e4df69f822dfd1573b057ac
parent4eb82c2e56a7cd68b74c3a21de5c79ea80c5dcd6
power_domain: Add power_domain_get_by_name()

Implement power_domain_get_by_name() convenience function which parses
DT property 'power-domain-names' and looks up power domain by matching
name.

Signed-off-by: Marek Vasut <marex@denx.de>
Cc: Patrick Delaunay <patrick.delaunay@foss.st.com>
Cc: Simon Glass <sjg@chromium.org>
drivers/power/domain/power-domain-uclass.c
include/power-domain.h