Skip to content

Commit

Permalink
mfd: stmpe: Support disabling sub-functions
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Francesco Dolcini <[email protected]>
Reviewed-by: Linus Walleij <[email protected]>
Reviewed-by: Marcel Ziswiler <[email protected]>
Signed-off-by: Lee Jones <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
  • Loading branch information
Oleksandr Suvorov authored and Lee Jones committed Nov 29, 2021
1 parent 5d051cf commit 786c6f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mfd/stmpe.c
Original file line number Diff line number Diff line change
Expand Up @@ -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")) {
Expand Down

0 comments on commit 786c6f1

Please sign in to comment.