Skip to content

Commit

Permalink
input: clps711x-keypad: Changing the compatibility string to match wi…
Browse files Browse the repository at this point in the history
…th 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 <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
  • Loading branch information
shcgit authored and arndb committed Jul 6, 2016
1 parent ba60ae1 commit e7c38f2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Documentation/devicetree/bindings/input/clps711x-keypad.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
* 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
Expand All @@ -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>,
Expand Down
4 changes: 2 additions & 2 deletions drivers/input/keyboard/clps711x-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit e7c38f2

Please sign in to comment.