diff options
author | 2018-05-08 23:13:09 +1000 | |
---|---|---|
committer | 2018-05-18 17:09:35 +1000 | |
commit | dd3b89be3eafd1c9977e350e81c5556230319101 (patch) | |
tree | 2bd53f0896aadb75b0ddfe211678db5f95b4a46e /drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c | |
parent | drm/nouveau: fix temp/pwm visibility, skip hwmon when no sensors exist (diff) | |
download | linux-dev-dd3b89be3eafd1c9977e350e81c5556230319101.tar.xz linux-dev-dd3b89be3eafd1c9977e350e81c5556230319101.zip |
drm/nouveau/clk: Use list_for_each_entry_from_reverse
It's better to use "list_for_each_entry_from_reverse" for iterating list
than "for loop" as it makes the code more clear to read.
This patch replace "for loop" with "list_for_each_entry_from_reverse"
and "start" variable with "cstate" which helps in refactoring
the code and also "cstate" variable is more commonly used in the other
functions.
changes in v2:
"start" variable is removed, before "cstate" variable was removed
but "cstate" is more common so preferred "cstate" over "start".
Signed-off-by: Arushi Singhal <arushisinghal19971997@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_gem.c')
0 files changed, 0 insertions, 0 deletions