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

input: clps711x-keypad: Changing the compatibility string to match with the smallest supported chip

This patch changes the compatibility string to match with the smallest
supported chip (EP7209). Since the DT-support for this CPU is not yet
announced, this change is safe.

Signed-off-by: Alexander Shiyan <shc_work@mail.ru>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>

authored by

Alexander Shiyan and committed by
Arnd Bergmann
e7c38f22 ba60ae1d

+4 -4
+2 -2
Documentation/devicetree/bindings/input/clps711x-keypad.txt
··· 1 1 * Cirrus Logic CLPS711X matrix keypad device tree bindings 2 2 3 3 Required Properties: 4 - - compatible: Shall contain "cirrus,clps711x-keypad". 4 + - compatible: Shall contain "cirrus,ep7209-keypad". 5 5 - row-gpios: List of GPIOs used as row lines. 6 6 - poll-interval: Poll interval time in milliseconds. 7 7 - linux,keymap: The definition can be found at ··· 12 12 13 13 Example: 14 14 keypad { 15 - compatible = "cirrus,ep7312-keypad", "cirrus,clps711x-keypad"; 15 + compatible = "cirrus,ep7312-keypad", "cirrus,ep7209-keypad"; 16 16 autorepeat; 17 17 poll-interval = <120>; 18 18 row-gpios = <&porta 0 0>,
+2 -2
drivers/input/keyboard/clps711x-keypad.c
··· 101 101 return -ENOMEM; 102 102 103 103 priv->syscon = 104 - syscon_regmap_lookup_by_compatible("cirrus,clps711x-syscon1"); 104 + syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1"); 105 105 if (IS_ERR(priv->syscon)) 106 106 return PTR_ERR(priv->syscon); 107 107 ··· 181 181 } 182 182 183 183 static const struct of_device_id clps711x_keypad_of_match[] = { 184 - { .compatible = "cirrus,clps711x-keypad", }, 184 + { .compatible = "cirrus,ep7209-keypad", }, 185 185 { } 186 186 }; 187 187 MODULE_DEVICE_TABLE(of, clps711x_keypad_of_match);