Skip to content

Commit e65b791

Browse files
committed
Merge tag 'gpio-fixes-for-v5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux
Pull gpio fix from Bartosz Golaszewski: "Fix a shift-out-of-bounds error in gpio-wcd934x" * tag 'gpio-fixes-for-v5.13-rc6' of git://git.kernel.org/pub/scm/linux/kernel/git/brgl/linux: gpio: wcd934x: Fix shift-out-of-bounds error
2 parents f21b807 + dbec64b commit e65b791

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpio/gpio-wcd934x.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#include <linux/slab.h>
88
#include <linux/of_device.h>
99

10-
#define WCD_PIN_MASK(p) BIT(p - 1)
10+
#define WCD_PIN_MASK(p) BIT(p)
1111
#define WCD_REG_DIR_CTL_OFFSET 0x42
1212
#define WCD_REG_VAL_CTL_OFFSET 0x43
1313
#define WCD934X_NPINS 5

0 commit comments

Comments
 (0)