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:
parent
ea2431f32f
commit
da42c0077c
7 changed files with 33 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue