mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 19:51:31 -04:00
gpio: stmpe: Add DT support for stmpe gpio
This patch allows the STMPE GPIO driver to be successfully probed and initialised when Device Tree support is enabled. Bindings are mentioned in Documentation too. Acked-by: Lee Jones <[email protected]> Signed-off-by: Vipul Kumar Samar <[email protected]> Signed-off-by: Viresh Kumar <[email protected]> Signed-off-by: Linus Walleij <[email protected]>
This commit is contained in:
parent
8618b3b47c
commit
86605cfe8c
3 changed files with 28 additions and 2 deletions
|
|
@ -294,12 +294,14 @@ static struct resource stmpe_gpio_resources[] = {
|
|||
|
||||
static struct mfd_cell stmpe_gpio_cell = {
|
||||
.name = "stmpe-gpio",
|
||||
.of_compatible = "st,stmpe-gpio",
|
||||
.resources = stmpe_gpio_resources,
|
||||
.num_resources = ARRAY_SIZE(stmpe_gpio_resources),
|
||||
};
|
||||
|
||||
static struct mfd_cell stmpe_gpio_cell_noirq = {
|
||||
.name = "stmpe-gpio",
|
||||
.of_compatible = "st,stmpe-gpio",
|
||||
/* gpio cell resources consist of an irq only so no resources here */
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue