drivers: sensor: icm42605: fix default kconfig issues
by default, a global trigger thread was enabled in kconfig but the thread priority and stack size depended on a local thread being enabled. the local thread option was never used anywhere so it is removed. Signed-off-by: Mikkel Jakobsen <mikkel.aunsbjerg@escolifesciences.com>
This commit is contained in:
parent
9d3f9e3921
commit
da514737d0
1 changed files with 2 additions and 8 deletions
|
@ -25,12 +25,6 @@ config ICM42605_TRIGGER_GLOBAL_THREAD
|
||||||
depends on GPIO
|
depends on GPIO
|
||||||
select ICM42605_TRIGGER
|
select ICM42605_TRIGGER
|
||||||
|
|
||||||
config ICM42605_TRIGGER_OWN_THREAD
|
|
||||||
bool "Use own thread"
|
|
||||||
depends on GPIO
|
|
||||||
select ICM42605_TRIGGER
|
|
||||||
|
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
config ICM42605_TRIGGER
|
config ICM42605_TRIGGER
|
||||||
|
@ -38,14 +32,14 @@ config ICM42605_TRIGGER
|
||||||
|
|
||||||
config ICM42605_THREAD_PRIORITY
|
config ICM42605_THREAD_PRIORITY
|
||||||
int "Thread priority"
|
int "Thread priority"
|
||||||
depends on ICM42605_TRIGGER_OWN_THREAD
|
depends on ICM42605_TRIGGER_GLOBAL_THREAD
|
||||||
default 10
|
default 10
|
||||||
help
|
help
|
||||||
Priority of thread used by the driver to handle interrupts.
|
Priority of thread used by the driver to handle interrupts.
|
||||||
|
|
||||||
config ICM42605_THREAD_STACK_SIZE
|
config ICM42605_THREAD_STACK_SIZE
|
||||||
int "Thread stack size"
|
int "Thread stack size"
|
||||||
depends on ICM42605_TRIGGER_OWN_THREAD
|
depends on ICM42605_TRIGGER_GLOBAL_THREAD
|
||||||
default 1024
|
default 1024
|
||||||
help
|
help
|
||||||
Stack size of thread used by the driver to handle interrupts.
|
Stack size of thread used by the driver to handle interrupts.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue