Skip to content
Commit 1e8a52e1 authored by Grant Likely's avatar Grant Likely
Browse files

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: default avatarGrant Likely <grant.likely@secretlab.ca>
parent 71422f9e
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment