summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorRabin Vincent <rabin.vincent@stericsson.com>2011-08-17 21:29:59 +0530
committerPhilippe Langlais <philippe.langlais@stericsson.com>2012-05-22 10:59:59 +0200
commit518d244f27fa37638af038e80bbadbe0c17905c0 (patch)
tree5acc24aaefaf808eaa3e18df69f3e2db6f1109b5 /include
parentc9e3dcc6075ed26d4762a0bb3913483a7c67a809 (diff)
ARM: 6373/1: tc35892-gpio: add setup/remove callbacks
For board-specific initialization. Change-Id: I8a13382bf91608b9edf2e712cff157b14e20848a Cc: Samuel Ortiz <sameo@linux.intel.com> Cc: linux-kernel@vger.kernel.org Acked-by: Linus Walleij <linus.walleij@stericsson.com> Signed-off-by: Rabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> Signed-off-by: Virupax Sadashivpetimath <virupax.sadashivpetimath@stericsson.com>
Diffstat (limited to 'include')
-rw-r--r--include/linux/mfd/tc35892.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/linux/mfd/tc35892.h b/include/linux/mfd/tc35892.h
index 41b572c1f8e..8c5385c2191 100644
--- a/include/linux/mfd/tc35892.h
+++ b/include/linux/mfd/tc35892.h
@@ -121,9 +121,13 @@ extern int tc35892_set_bits(struct tc35892 *tc35892, u8 reg, u8 mask, u8 val);
* struct tc35892_gpio_platform_data - TC35892 GPIO platform data
* @gpio_base: first gpio number assigned to TC35892. A maximum of
* %TC35892_NR_GPIOS GPIOs will be allocated.
+ * @setup: callback for board-specific initialization
+ * @remove: callback for board-specific teardown
*/
struct tc35892_gpio_platform_data {
int gpio_base;
+ void (*setup)(struct tc35892 *tc35892, unsigned gpio_base);
+ void (*remove)(struct tc35892 *tc35892, unsigned gpio_base);
};
/**