power: reset: syscon-poweroff: add a mask property
authorGuy Shapiro <guy.shapiro@mobi-wize.com>
Tue, 7 Feb 2017 15:56:05 +0000 (17:56 +0200)
committerSebastian Reichel <sre@kernel.org>
Thu, 13 Apr 2017 23:41:33 +0000 (01:41 +0200)
commitf2c199db477efd8233e75b2d69bac8be8640308d
tree3b00924b3b8fb1380513f603a948454ceff31112
parentf385e6e2a153233033aa348766bac21125651d05
power: reset: syscon-poweroff: add a mask property

Make the syscon-poweroff driver accept value and mask instead of
just value.

Prior to this patch, the property name for the value was 'mask'. If
only the mask property is defined on a node, maintain compatibility
by using it as the value.

Signed-off-by: Guy Shapiro <guy.shapiro@mobi-wize.com>
Acked-by: Rob Herring <robh@kernel.org>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
Documentation/devicetree/bindings/power/reset/syscon-poweroff.txt
drivers/power/reset/syscon-poweroff.c