]> Git Repo - linux.git/commit
Input: adp5589-keys - fix adp5589_gpio_get_value()
authorNuno Sa <[email protected]>
Tue, 1 Oct 2024 14:47:23 +0000 (07:47 -0700)
committerDmitry Torokhov <[email protected]>
Tue, 1 Oct 2024 14:48:49 +0000 (07:48 -0700)
commitc684771630e64bc39bddffeb65dd8a6612a6b249
tree3c52b093af0494d1ed7ccc308f1ae2702e6da457
parentfb5cc65f973661241e4a2b7390b429aa7b330c69
Input: adp5589-keys - fix adp5589_gpio_get_value()

The adp5589 seems to have the same behavior as similar devices as
explained in commit 910a9f5636f5 ("Input: adp5588-keys - get value from
data out when dir is out").

Basically, when the gpio is set as output we need to get the value from
ADP5589_GPO_DATA_OUT_A register instead of ADP5589_GPI_STATUS_A.

Fixes: 9d2e173644bb ("Input: ADP5589 - new driver for I2C Keypad Decoder and I/O Expander")
Signed-off-by: Nuno Sa <[email protected]>
Link: https://lore.kernel.org/r/20241001-b4-dev-adp5589-fw-conversion-v1-2-fca0149dfc47@analog.com
Cc: [email protected]
Signed-off-by: Dmitry Torokhov <[email protected]>
drivers/input/keyboard/adp5589-keys.c
This page took 0.053928 seconds and 4 git commands to generate.