summaryrefslogtreecommitdiffstats
path: root/drivers/mfd
diff options
context:
space:
mode:
authorOleksandr Suvorov <oleksandr.suvorov@toradex.com>2021-10-27 10:21:55 +0200
committerLee Jones <lee.jones@linaro.org>2021-11-29 14:17:00 +0100
commit786c6f140bb67ba315962b4742326e93e8b3207c (patch)
treed55611e3c8a92a2eaed9660c7e092beff447363f /drivers/mfd
parentmfd: atmel-flexcom: Use .resume_noirq (diff)
downloadlinux-786c6f140bb67ba315962b4742326e93e8b3207c.tar.xz
linux-786c6f140bb67ba315962b4742326e93e8b3207c.zip
mfd: stmpe: Support disabling sub-functions
Add support of sub-functions disabling. It allows one to define an stmpe sub-function device in devicetree, but keep it disabled. Signed-off-by: Oleksandr Suvorov <oleksandr.suvorov@toradex.com> Signed-off-by: Francesco Dolcini <francesco.dolcini@toradex.com> Reviewed-by: Linus Walleij <linus.walleij@linaro.org> Reviewed-by: Marcel Ziswiler <marcel.ziswiler@toradex.com> Signed-off-by: Lee Jones <lee.jones@linaro.org> Link: https://lore.kernel.org/r/20211027082155.206449-1-francesco.dolcini@toradex.com
Diffstat (limited to 'drivers/mfd')
-rw-r--r--drivers/mfd/stmpe.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mfd/stmpe.c b/drivers/mfd/stmpe.c
index e928df95e316..aeb9ea55f97d 100644
--- a/drivers/mfd/stmpe.c
+++ b/drivers/mfd/stmpe.c
@@ -1361,7 +1361,7 @@ static void stmpe_of_probe(struct stmpe_platform_data *pdata,
pdata->autosleep = (pdata->autosleep_timeout) ? true : false;
- for_each_child_of_node(np, child) {
+ for_each_available_child_of_node(np, child) {
if (of_node_name_eq(child, "stmpe_gpio")) {
pdata->blocks |= STMPE_BLOCK_GPIO;
} else if (of_node_name_eq(child, "stmpe_keypad")) {