diff options
author | Arushi Singhal <arushisinghal19971997@gmail.com> | 2018-05-08 23:13:09 +1000 |
---|---|---|
committer | Ben Skeggs <bskeggs@redhat.com> | 2018-05-18 17:09:35 +1000 |
commit | dd3b89be3eafd1c9977e350e81c5556230319101 (patch) | |
tree | 2bd53f0896aadb75b0ddfe211678db5f95b4a46e /drivers/gpu/drm/amd/amdgpu/amdgpu_atpx_handler.c | |
parent | 7a22c737faef99d6f75d7049c1a2f6f0fdefb1ec (diff) |
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_atpx_handler.c')
0 files changed, 0 insertions, 0 deletions