Skip to content

Commit

Permalink
input: snvs_pwrkey: use "wakeup-source" as deivce tree property name
Browse files Browse the repository at this point in the history
Instead of inventing a new property name, let's use "wakeup-source" to
be consistent with other driver and subsystem bindings.

Signed-off-by: Shawn Guo <shawnguo@kernel.org>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
  • Loading branch information
Shawn Guo committed Jul 18, 2015
1 parent cc28791 commit def56bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Documentation/devicetree/bindings/crypto/fsl-sec4.txt
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ System ON/OFF key driver
Value type: <int>
Definition: Keycode to emit, KEY_POWER by default.

- wakeup:
- wakeup-source:
Usage: option
Value type: <boo>
Definition: Button can wake-up the system.
Expand Down
2 changes: 1 addition & 1 deletion drivers/input/keyboard/snvs_pwrkey.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ static int imx_snvs_pwrkey_probe(struct platform_device *pdev)
dev_warn(&pdev->dev, "KEY_POWER without setting in dts\n");
}

pdata->wakeup = of_property_read_bool(np, "wakeup");
pdata->wakeup = of_property_read_bool(np, "wakeup-source");

pdata->irq = platform_get_irq(pdev, 0);
if (pdata->irq < 0) {
Expand Down

0 comments on commit def56bb

Please sign in to comment.