basic_mmio_gpio: support different input/output registers
authorJamie Iles <jamie@jamieiles.com>
Fri, 20 May 2011 06:40:16 +0000 (00:40 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Fri, 20 May 2011 06:40:16 +0000 (00:40 -0600)
commitdd86a0cc5e35161538c10e35eb85e2ad0adfe14d
tree4a6f57831bc7b1a471bfe74b726498fce057fc0c
parente027d6f9d52d9ccabb307d0cb0265de3481b1e9e
basic_mmio_gpio: support different input/output registers

Some controllers have separate input and output registers.  For these
controllers, use "set" for the output and "dat" for the input.

Changes since v2: reuse "set" for output and "dat" for input rather than
adding a new "in" register.

Signed-off-by: Jamie Iles <jamie@jamieiles.com>
Acked-by: Anton Vorontsov <cbouatmailru@gmail.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/gpio/basic_mmio_gpio.c