]> asedeno.scripts.mit.edu Git - linux.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)
commit560928b27b38840a1dd8d6bdb7629b7ffcf6a8d8
tree146054b0b7035871270fd270dcd804ae7c9e63a9
parent651022382c7f8da46cb4872a545ee1da6d097d2a
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