Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

mfd: stmpe: Fix STMPE24xx GPMR LSB

The least significat byte of the GPIO value read register
on the STMPE24xx series is on addres 0xA4 not 0xA5. Correct
against datasheet and tested on the STMPE2401 hardware.

Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>

authored by

Linus Walleij and committed by
Lee Jones
871c3cf4 f114040e

+1 -1
+1 -1
drivers/mfd/stmpe.h
··· 269 269 #define STMPE24XX_REG_CHIP_ID 0x80 270 270 #define STMPE24XX_REG_IEGPIOR_LSB 0x18 271 271 #define STMPE24XX_REG_ISGPIOR_MSB 0x19 272 - #define STMPE24XX_REG_GPMR_LSB 0xA5 272 + #define STMPE24XX_REG_GPMR_LSB 0xA4 273 273 #define STMPE24XX_REG_GPSR_LSB 0x85 274 274 #define STMPE24XX_REG_GPCR_LSB 0x88 275 275 #define STMPE24XX_REG_GPDR_LSB 0x8B