diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2021-06-12 02:27:18 +0300 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2021-06-12 02:27:18 +0300 |
commit | e65b7914b2abfff4fde9dcca22bbab99fab5ba05 (patch) | |
tree | 8129feb83d5845ec6eccd14bcb68ccb13059600a /drivers | |
parent | f21b807c3cf8cd7c5ca9e406b27bf1cd2f1c1238 (diff) | |
parent | dbec64b11c65d74f31427e2b9d5746fbf17bf840 (diff) | |
download | linux-e65b7914b2abfff4fde9dcca22bbab99fab5ba05.tar.xz |
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
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpio/gpio-wcd934x.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpio-wcd934x.c b/drivers/gpio/gpio-wcd934x.c index 1cbce5990855..97e6caedf1f3 100644 --- a/drivers/gpio/gpio-wcd934x.c +++ b/drivers/gpio/gpio-wcd934x.c @@ -7,7 +7,7 @@ #include <linux/slab.h> #include <linux/of_device.h> -#define WCD_PIN_MASK(p) BIT(p - 1) +#define WCD_PIN_MASK(p) BIT(p) #define WCD_REG_DIR_CTL_OFFSET 0x42 #define WCD_REG_VAL_CTL_OFFSET 0x43 #define WCD934X_NPINS 5 |