diff options
author | Oleksandr Suvorov <oleksandr.suvorov@toradex.com> | 2021-10-27 10:21:55 +0200 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2021-11-29 13:17:00 +0000 |
commit | 786c6f140bb67ba315962b4742326e93e8b3207c (patch) | |
tree | d55611e3c8a92a2eaed9660c7e092beff447363f /drivers/mfd/stmpe.c | |
parent | 5d051cf94fd5834a1513aa77e542c49fd973988a (diff) | |
download | linux-stable-786c6f140bb67ba315962b4742326e93e8b3207c.tar.gz linux-stable-786c6f140bb67ba315962b4742326e93e8b3207c.tar.bz2 linux-stable-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/stmpe.c')
-rw-r--r-- | drivers/mfd/stmpe.c | 2 |
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")) { |