]> git.baikalelectronics.ru Git - uboot.git/commit
pinctrl: k210: Fix loop in k210_pc_get_drive()
authorNiklas Cassel <niklas.cassel@wdc.com>
Tue, 1 Mar 2022 10:35:44 +0000 (10:35 +0000)
committerLeo Yu-Chi Liang <ycliang@andestech.com>
Tue, 15 Mar 2022 09:43:11 +0000 (17:43 +0800)
commit3db40527373c9426655a27142c130ec17f75256e
tree890063c1342818f200fa1477e5d924095c94f850
parent6a5ee2c73ebafd9bc79831a04de5db681ef5931e
pinctrl: k210: Fix loop in k210_pc_get_drive()

The loop exited too early so the k210_pc_drive_strength[0] array element
was never used.

Original Linux patch by Dan Carpenter:
https://lore.kernel.org/linux-gpio/20220209180804.GA18385@kili/

Fixes: 2f0285b8f631 ("pinctrl: Add support for Kendryte K210 FPIOA")
Signed-off-by: Niklas Cassel <niklas.cassel@wdc.com>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
drivers/pinctrl/pinctrl-k210.c