diff mbox

spi: pl022: Specify 'num-cs' property as required in devicetree binding

Message ID 1431357618-6829-1-git-send-email-ezequiel@vanguardiasur.com.ar (mailing list archive)
State Accepted
Commit ea6055c46eda1e19e02209814955e13f334bbe1b
Headers show

Commit Message

Ezequiel Garcia May 11, 2015, 3:20 p.m. UTC
Since commit 39a6ac11df65 ("spi/pl022: Devicetree support w/o platform data")
the 'num-cs' parameter cannot be passed through platform data when probing
with devicetree. Instead, it's a required devicetree property.

Fix the binding documentation so the property is properly specified.

Fixes: 39a6ac11df65 ("spi/pl022: Devicetree support w/o platform data")
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
---
 Documentation/devicetree/bindings/spi/spi_pl022.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Mark Brown May 11, 2015, 5:22 p.m. UTC | #1
On Mon, May 11, 2015 at 12:20:18PM -0300, Ezequiel Garcia wrote:
> Since commit 39a6ac11df65 ("spi/pl022: Devicetree support w/o platform data")
> the 'num-cs' parameter cannot be passed through platform data when probing
> with devicetree. Instead, it's a required devicetree property.

Applied, thanks.
diff mbox

Patch

diff --git a/Documentation/devicetree/bindings/spi/spi_pl022.txt b/Documentation/devicetree/bindings/spi/spi_pl022.txt
index 22ed679..4d1673c 100644
--- a/Documentation/devicetree/bindings/spi/spi_pl022.txt
+++ b/Documentation/devicetree/bindings/spi/spi_pl022.txt
@@ -4,9 +4,9 @@  Required properties:
 - compatible : "arm,pl022", "arm,primecell"
 - reg : Offset and length of the register set for the device
 - interrupts : Should contain SPI controller interrupt
+- num-cs : total number of chipselects
 
 Optional properties:
-- num-cs : total number of chipselects
 - cs-gpios : should specify GPIOs used for chipselects.
   The gpios will be referred to as reg = <index> in the SPI child nodes.
   If unspecified, a single SPI device without a chip select can be used.