PM / OPP: Rename structures for clarity
authorViresh Kumar <viresh.kumar@linaro.org>
Tue, 16 Feb 2016 08:47:53 +0000 (14:17 +0530)
committerAlex Shi <alex.shi@linaro.org>
Fri, 8 Apr 2016 03:24:31 +0000 (11:24 +0800)
commit811cd7442b982402c898e6a55798cecd76be0272
tree13087fe8d0e328b20ee3c777e2838a7264a97432
parent753a14dbcc37565faa1caf17873fda776002648d
PM / OPP: Rename structures for clarity

Stephen pointed out recently, that few structures always confuse him as
they aren't named properly. And this patch tries to address that:

Names are updated as:
- device_opp or dev_opp -> opp_table
- dev_opp_list -> opp_tables
- dev_opp_list_lock -> opp_table_lock
- device_list_opp -> opp_device (it was never a list, but a structure)
- list_dev -> opp_dev
- And similar changes in comments and function names as well.

This also fixes checkpatch warnings that were generated with this patch.

No functional changes.

Suggested-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
(cherry picked from commit 2c2709dc6921c5d246b686521f932c73a20f428f)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
drivers/base/power/opp/core.c
drivers/base/power/opp/cpu.c
drivers/base/power/opp/debugfs.c
drivers/base/power/opp/opp.h