On Wed, 13 Feb 2019 09:10:53 +0100
David Lechner <david@xxxxxxxxxxxxxx> wrote:
On 2/12/19 9:57 PM, justinpopo6@xxxxxxxxx wrote:
From: Justin Chen <justinpopo6@xxxxxxxxx>
The ADS79XX has GPIO pins that can be used. Add support for the GPIO
pins using the GPIO chip framework.
Signed-off-by: Justin Chen <justinpopo6@xxxxxxxxx>
---
It will be better to split this up into two patches[1]. One to replace
all uses of indio_dev->mlock with the new local lock and then another to
add GPIO support.
How are you using/testing this patch? Do we need device tree bindings?
It will also help reviewers if you add a note about what you changed in
each revision of the patch when you resubmit. The usual way to do this
is something like:
v3 changes:
- Fixed unlocking mutex too many times in ti_ads7950_init_gpio()
It also is nice to wait a few days at least before submitting the next
revision to give people some time to respond.
Agreed with all comments except the endian one.
SPI doesn't define an endianness of data on the wire, so we may need
to convert to match whatever ordering the ti chip expects.
I would expect things to be thoroughly broken if we remove those
conversions - particularly as I doubt this is being tested with a
big endian host!
Jonathan