Input: ad7877 - implement specified chip select behavior
authorMichael Hennerich <michael.hennerich@analog.com>
Fri, 15 Oct 2010 16:48:10 +0000 (09:48 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 18 Oct 2010 04:12:11 +0000 (21:12 -0700)
commite92c27fb5319d8b12f0c291c827e252f0e17afc4
treec01bf3f9bfe9b2dee980e2848987ab4b494ceda9
parent790d5c8dac35cf10cf6c52cc9b90ad20603ac2c1
Input: ad7877 - implement specified chip select behavior

According to the AD7877 datasheet:

Each transfer operation is 16-bit. If multiple read/write operations are
to be performed, CS must be taken high after the end of each read/write
operation before another read/write operation can be performed by
taking CS low again.

Make sure CS toggles after each transfer in the message.

Signed-off-by: Michael Hennerich <michael.hennerich@analog.com>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
drivers/input/touchscreen/ad7877.c