]> git.dujemihanovic.xyz Git - u-boot.git/commit
pinctrl: single: fix the loop counter variable type
authorDario Binacchi <dariobin@libero.it>
Sun, 11 Apr 2021 07:39:40 +0000 (09:39 +0200)
committerLokesh Vutla <lokeshvutla@ti.com>
Mon, 12 Apr 2021 05:47:15 +0000 (11:17 +0530)
commit6719294694bf65c1ec9b0ccd15e204f46eb0d6b0
treea45b52e77c128f6fae44c273ce3ba567d2b1a4ea
parent4ace4fa697a84a18fc1c414842fd100e4d3690ae
pinctrl: single: fix the loop counter variable type

The 'n' variable is used as a loop counter, not as a physical address,
and is used in a comparison with an int. So it makes sense to change
its type from phys_addr_t to int.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Pratyush Yadav <p.yadav@ti.com>
drivers/pinctrl/pinctrl-single.c