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

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>

authored by

Alexander Shiyan and committed by
Dmitry Torokhov
d238b8f6 0a112e7c

+1 -2
+1 -2
drivers/input/keyboard/clps711x-keypad.c
··· 95 95 if (!priv) 96 96 return -ENOMEM; 97 97 98 - priv->syscon = 99 - syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1"); 98 + priv->syscon = syscon_regmap_lookup_by_phandle(np, "syscon"); 100 99 if (IS_ERR(priv->syscon)) 101 100 return PTR_ERR(priv->syscon); 102 101