Skip to content

Commit a6a55b5

Browse files
committed
Merge tag 'pinctrl-v5.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl
Pull pin control fixes from Linus Walleij: "Two fixes for pin control, not much to say about it, it's just regular driver fixes: - Fix erroneous shift in the Meson driver - Make Lochnagar select the GPIOLIB Kconfig symbol" * tag 'pinctrl-v5.5-4' of git://git.kernel.org/pub/scm/linux/kernel/git/linusw/linux-pinctrl: pinctrl: meson: Fix wrong shift value when get drive-strength pinctrl: lochnagar: select GPIOLIB
2 parents b5b3159 + 35c60be commit a6a55b5

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

drivers/pinctrl/cirrus/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
config PINCTRL_LOCHNAGAR
33
tristate "Cirrus Logic Lochnagar pinctrl driver"
44
depends on MFD_LOCHNAGAR
5+
select GPIOLIB
56
select PINMUX
67
select PINCONF
78
select GENERIC_PINCONF

drivers/pinctrl/meson/pinctrl-meson.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -441,6 +441,7 @@ static int meson_pinconf_get_drive_strength(struct meson_pinctrl *pc,
441441
return ret;
442442

443443
meson_calc_reg_and_bit(bank, pin, REG_DS, &reg, &bit);
444+
bit = bit << 1;
444445

445446
ret = regmap_read(pc->reg_ds, reg, &val);
446447
if (ret)

0 commit comments

Comments
 (0)