Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

authored by

Oleksandr Suvorov and committed by
Lee Jones
786c6f14 5d051cf9

+1 -1
+1 -1
drivers/mfd/stmpe.c
··· 1361 1361 1362 1362 pdata->autosleep = (pdata->autosleep_timeout) ? true : false; 1363 1363 1364 - for_each_child_of_node(np, child) { 1364 + for_each_available_child_of_node(np, child) { 1365 1365 if (of_node_name_eq(child, "stmpe_gpio")) { 1366 1366 pdata->blocks |= STMPE_BLOCK_GPIO; 1367 1367 } else if (of_node_name_eq(child, "stmpe_keypad")) {