aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/input/keyboard/clps711x-keypad.c
diff options
context:
space:
mode:
authorAlexander Shiyan <eagle.alexander923@gmail.com>2022-04-20 13:58:45 -0700
committerDmitry Torokhov <dmitry.torokhov@gmail.com>2022-04-24 18:25:00 -0700
commitd238b8f68018f33f12253a63543a04712d2d6a5b (patch)
tree6aa8a926821acb0f742ee98808a5ddbe93afb99b /drivers/input/keyboard/clps711x-keypad.c
parentInput: remove unneeded variable in input_inhibit_device() (diff)
downloadlinux-dev-d238b8f68018f33f12253a63543a04712d2d6a5b.tar.xz
linux-dev-d238b8f68018f33f12253a63543a04712d2d6a5b.zip
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. Signed-off-by: Alexander Shiyan <eagle.alexander923@gmail.com> Link: https://lore.kernel.org/r/20220420062725.25614-1-eagle.alexander923@gmail.com Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Diffstat (limited to 'drivers/input/keyboard/clps711x-keypad.c')
-rw-r--r--drivers/input/keyboard/clps711x-keypad.c3
1 files changed, 1 insertions, 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);