Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e7c38f22 authored by Alexander Shiyan's avatar Alexander Shiyan Committed by Arnd Bergmann
Browse files

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: default avatarAlexander Shiyan <shc_work@mail.ru>
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
parent ba60ae1d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
* Cirrus Logic CLPS711X matrix keypad device tree bindings

Required Properties:
- compatible:    Shall contain "cirrus,clps711x-keypad".
- compatible:    Shall contain "cirrus,ep7209-keypad".
- row-gpios:     List of GPIOs used as row lines.
- poll-interval: Poll interval time in milliseconds.
- linux,keymap:  The definition can be found at
@@ -12,7 +12,7 @@ Optional Properties:

Example:
	keypad {
		compatible = "cirrus,ep7312-keypad", "cirrus,clps711x-keypad";
		compatible = "cirrus,ep7312-keypad", "cirrus,ep7209-keypad";
		autorepeat;
		poll-interval = <120>;
		row-gpios = <&porta 0 0>,
+2 −2
Original line number Diff line number Diff line
@@ -101,7 +101,7 @@ static int clps711x_keypad_probe(struct platform_device *pdev)
		return -ENOMEM;

	priv->syscon =
		syscon_regmap_lookup_by_compatible("cirrus,clps711x-syscon1");
		syscon_regmap_lookup_by_compatible("cirrus,ep7209-syscon1");
	if (IS_ERR(priv->syscon))
		return PTR_ERR(priv->syscon);

@@ -181,7 +181,7 @@ static int clps711x_keypad_remove(struct platform_device *pdev)
}

static const struct of_device_id clps711x_keypad_of_match[] = {
	{ .compatible = "cirrus,clps711x-keypad", },
	{ .compatible = "cirrus,ep7209-keypad", },
	{ }
};
MODULE_DEVICE_TABLE(of, clps711x_keypad_of_match);