Skip to content

Commit

Permalink
drivers: sensor: ite_cvmp_it8xxx2: Move init priority into if check
Browse files Browse the repository at this point in the history
Moves a Kconfig that appears everywhere in the wrong place so that
it is enclosed if if statment check, so it only shows for device
that have the driver enabled

Signed-off-by: Jamie McCrae <jamie.mccrae@nordicsemi.no>
  • Loading branch information
nordicjm authored and MaureenHelm committed Apr 8, 2024
1 parent d9fd292 commit 2ae1a97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/sensor/ite/ite_vcmp_it8xxx2/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@ config VCMP_IT8XXX2
it8xxx2 supports six 10-bit resolution voltage comparator
channels, and the input of each comparator comes from ADC pin.

if VCMP_IT8XXX2

config VCMP_IT8XXX2_INIT_PRIORITY
int "ITE it8xxx2 voltage comparator device instance init priority"
default SENSOR_INIT_PRIORITY
help
This option sets ITE voltage comparator device instance init priority.

if VCMP_IT8XXX2

config VCMP_IT8XXX2_WORKQUEUE
bool "ITE it8xxx2 voltage comparator threshold detection uses internal work queue"
help
Expand Down

0 comments on commit 2ae1a97

Please sign in to comment.