]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: Add bitmask to block requests to unavailable stmpe GPIOs
authorWolfram Sang <w.sang@pengutronix.de>
Mon, 16 Aug 2010 15:14:44 +0000 (17:14 +0200)
committerSamuel Ortiz <sameo@linux.intel.com>
Thu, 28 Oct 2010 22:28:43 +0000 (00:28 +0200)
commit7f8057ee191938daa6308731916418a0c7486793
tree1164b9fab57ef5a81304efe48932c4a6db62049d
parentc7c02fda1ce180f8a4cc3b97a69ca33d6f8d2ba4
gpio: Add bitmask to block requests to unavailable stmpe GPIOs

GPIOs on these controller are multi-functional. If you decided to use
some of them e.g. as input channels for the ADC, you surely don't want
those pins to be reassigned as simple GPIOs (which may be triggered even
from userspace via 'export'). Same for the touchscreen controller pins.
Since knowledge about the hardware is needed to decide which GPIOs to
reserve, let this bitmask be inside platform_data and provide some
defines to assist potential users.

Signed-off-by: Wolfram Sang <w.sang@pengutronix.de>
Acked-by: Rabin Vincent <rabin.vincent@stericsson.com>
Cc: Linus Walleij <linus.walleij@stericsson.com>
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
drivers/gpio/stmpe-gpio.c
include/linux/mfd/stmpe.h