All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] input: clps711x-keypad: Use syscon_regmap_lookup_by_phandle
@ 2022-04-20  6:27 Alexander Shiyan
  2022-04-20 21:45 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Alexander Shiyan @ 2022-04-20  6:27 UTC (permalink / raw)
  To: linux-input; +Cc: Dmitry Torokhov, 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.

Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>
---
 drivers/input/keyboard/clps711x-keypad.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/drivers/input/keyboard/clps711x-keypad.c b/drivers/input/keyboard/clps711x-keypad.c
index 019dd6ed2c29..939c88655fc0 100644
--- a/drivers/input/keyboard/clps711x-keypad.c
+++ b/drivers/input/keyboard/clps711x-keypad.c
@@ -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);
 
-- 
2.32.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] input: clps711x-keypad: Use syscon_regmap_lookup_by_phandle
  2022-04-20  6:27 [PATCH] input: clps711x-keypad: Use syscon_regmap_lookup_by_phandle Alexander Shiyan
@ 2022-04-20 21:45 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2022-04-20 21:45 UTC (permalink / raw)
  To: Alexander Shiyan; +Cc: linux-input

On Wed, Apr 20, 2022 at 09:27:25AM +0300, Alexander Shiyan wrote:
> 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.
> 
> Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com>

Applied, thank you.

-- 
Dmitry

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-04-20 21:45 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-20  6:27 [PATCH] input: clps711x-keypad: Use syscon_regmap_lookup_by_phandle Alexander Shiyan
2022-04-20 21:45 ` Dmitry Torokhov

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.