[PATCH v2 0/3] gpio: twl4030: Correct status reporting for outputs
From: Peter Ujfalusi
Date: Thu Dec 06 2012 - 05:52:00 EST
As Grant commneted on the first version:
Introduce bitfields to cache the directionand output status of the pins so we
can report them correctly.
To do this I did some cleanup within the driver to get rid of the global
variables and moved them under a private structure, changed the locking as well
to protect the bitfield operation.
As a last patch I added a note that the PWMA/B handling should not be in this
driver at all.
Peter Ujfalusi (3):
gpio: twl4030: Introduce private structure to store variables needed
gpio: twl4030: Cache the direction and output states in private data
gpio: twl4030: TODO comment to remove the PWMA/B (LEDA/B) handling
drivers/gpio/gpio-twl4030.c | 177 ++++++++++++++++++++++++++++----------------
1 file changed, 115 insertions(+), 62 deletions(-)
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/