Input: adp5588-keys - get value from data out when dir is out
authorJean-Francois Dagenais <jeff.dagenais@gmail.com>
Wed, 12 Feb 2014 23:14:28 +0000 (15:14 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 15 Feb 2014 21:13:17 +0000 (13:13 -0800)
commit910a9f5636f5c128c02bf9ccd71ac03325700b57
tree9826ada0e6b80bb99e17ab280d45d2e00ecd0008
parent55df811f2066fcaec2548248f0a1a6a0c12dc6b8
Input: adp5588-keys - get value from data out when dir is out

As discussed here: http://ez.analog.com/message/35852, the 5587 revC and
5588 revB spec sheets contain a mistake in the GPIO_DAT_STATx register
description.

According to R.Shnell at ADI, as well as my own observations, it should
read: "GPIO data status (shows GPIO state when read for inputs)".

This commit changes the get value function accordingly.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/keyboard/adp5588-keys.c