]> git.baikalelectronics.ru Git - kernel.git/commit
PM / Domains: Rename genpd virtual devices as virt_dev
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 25 Oct 2018 03:37:38 +0000 (09:07 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 5 Nov 2018 02:10:42 +0000 (07:40 +0530)
commit75ede65c496926179f6a1434d87a0043a89a97a1
tree146054b0b7035871270fd270dcd804ae7c9e63a9
parenta9e80a095d95d1159b26f73bd6d9c2fadc7fb411
PM / Domains: Rename genpd virtual devices as virt_dev

There are several struct device instances that genpd core handles. The
most common one is the consumer device structure, which is named
(correctly) as "dev" within genpd core. The second one is the genpd's
device structure, referenced as genpd->dev. The third one is the virtual
device structures created by the genpd core to represent the consumer
device for multiple power domain case, currently named as genpd_dev. The
naming of these virtual devices isn't very clear or readable and it
looks more like the genpd->dev.

Rename the virtual device instances within the genpd core as "virt_dev".

Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/base/power/domain.c