api/spi: Add a dedicated Kconfig option for asynchronous mode enablement

Instead of using CONFIG_POLL, which is not directly related to SPI and
is a kernel option, let's have SPI_ASYNC instead. When enabled, it will
select POLL automatically.

Fixes #5839

Signed-off-by: Tomasz Bursztyka <tomasz.bursztyka@linux.intel.com>
This commit is contained in:
Tomasz Bursztyka 2018-01-29 22:12:50 +01:00 committed by Carles Cufí
commit da42c0077c
7 changed files with 33 additions and 25 deletions

View file

@ -24,6 +24,13 @@ config SPI_LEGACY_API
Driver and user API implements/use the legacy SPI API.
If unselected, the new API will be used (default).
config SPI_ASYNC
bool "Enable Asynchronous call support"
default n
select POLL
help
This option enables the asynchronous API calls.
config SPI_INIT_PRIORITY
int "Init priority"
default 70