spi: By default setup spi_masters with 1 chipselect and dynamics bus number
authorGrant Likely <grant.likely@secretlab.ca>
Sun, 20 May 2012 05:42:08 +0000 (23:42 -0600)
committerGrant Likely <grant.likely@secretlab.ca>
Sun, 20 May 2012 05:42:08 +0000 (23:42 -0600)
commit1e8a52e18cfb381bc9cc1f0b720540364d2a6edd
treec10c014afe3e7cab09773b8af214a0c2e85aac2e
parent71422f9e68d43f3fbc6c8939ca8d1b80aa2e4d1a
spi: By default setup spi_masters with 1 chipselect and dynamics bus number

Trivial simplification.  Instead of requiring spi master drivers to
always set the bus number (even when a dynamic number is desired),
this patch modifies spi_alloc_master() to initialize num_chipselect to
1 (because there will always be at least one CS) and bus_num to -1 for
dynamic allocation.  This simplifies the code needed to be written for
drivers.

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-ath79.c
drivers/spi/spi-lm70llp.c
drivers/spi/spi-mpc52xx.c
drivers/spi/spi-ppc4xx.c
drivers/spi/spi-topcliff-pch.c
drivers/spi/spi.c