input: snvs_pwrkey: use "wakeup-source" as deivce tree property name
Subsystems (4)
PATCH v2 1/1 input: snvs_pwrkey: use "wakeup-source" as deivce tree property name
Instead of inventing a new property name, let's use "wakeup-source" to be consistent with other driver and subsystem bindings.
---
Changes since v1:
- Use "wakeup-source" rather than "linux,wakeup"
This is a fixup for Frank's patch which is queued on i.MX tree, so I will apply it to the same branch.
Shawn
Documentation/devicetree/bindings/crypto/fsl-sec4.txt | 2 +- drivers/input/keyboard/snvs_pwrkey.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
Documentation/devicetree/bindings/crypto/fsl-sec4.txt +1 -1
@@ -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.
drivers/input/keyboard/snvs_pwrkey.c +1 -1
@@ -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 ) {
Signature · 1 line
1.9.1
Dmitry Torokhov
maintainerPATCH v2 1/1 input: snvs_pwrkey: use "wakeup-source" as deivce tree property name
Quoted 10 lines · Shawn Guo
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 <[email protected]>---
Changes since v1:
- Use "wakeup-source" rather than "linux,wakeup"This is a fixup for Frank's patch which is queued on i.MX tree, so I will apply it to the same branch.
So we do not need to care about keeping compatibility yet. Good.
Quoted 36 lines
Shawn
Documentation/devicetree/bindings/crypto/fsl-sec4.txt | 2 +- drivers/input/keyboard/snvs_pwrkey.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)Documentation/devicetree/bindings/crypto/fsl-sec4.txt +1
-1@@ -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.drivers/input/keyboard/snvs_pwrkey.c +1
-1@@ -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 ) {Signature · 1 line
1.9.1
Signature · 1 line
Dmitry