Skip to contentSkip to conversation

input: clps711x-keypad: Use syscon_regmap_lookup_by_phandle

PATCH Applied Alexander Shiyan 2 participants 2 messages Apr 20, 2022

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 input: clps711x-keypad: Use syscon_regmap_lookup_by_phandle

Since version 5.13, the standard syscon bindings have been added to all clps711x DT nodes, so we can now use the more general syscon_regmap_lookup_by_phandle function to get the syscon pointer.

---
 drivers/input/keyboard/clps711x-keypad.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/input/keyboard/clps711x-keypad.c +1 -2
index 019dd6ed2c29..939c88655fc0 100644
@@ -95,8 +95,7 @@ static int clps711x_keypad_probe(struct platform_device *pdev)
 	if (!priv)
 		return -ENOMEM;
 
-	priv->syscon =
-		syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
+	priv->syscon = syscon_regmap_lookup_by_phandle(np, "syscon");
 	if (IS_ERR(priv->syscon))
 		return PTR_ERR(priv->syscon);
 
Signature · 1 line
2.32.0
maintainer Applied
#1 lore raw
Quoted 5 lines · Alexander Shiyan

Since version 5.13, the standard syscon bindings have been added to all clps711x DT nodes, so we can now use the more general syscon_regmap_lookup_by_phandle function to get the syscon pointer.

Applied, thank you.

Signature · 1 line
Dmitry