diff options
author | Rabin Vincent <rabin.vincent@stericsson.com> | 2011-08-17 21:29:59 +0530 |
---|---|---|
committer | Philippe Langlais <philippe.langlais@linaro.org> | 2012-03-19 08:50:31 +0100 |
commit | 146de10f0729d8745b82b2e44c0aea51d4b54e92 (patch) | |
tree | c67af1bf3f67ff83e2aa1e861ff5a69d1dd916e3 | |
parent | 62c008ee9b0a486cfcf245359402a04e7b6f04cb (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>
-rw-r--r-- | include/linux/mfd/tc35892.h | 4 |
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); }; /** |