adc: Cleanup main Kconfig

This patch addresses the following issues:
* Aligns the Kconfig code style with Zephyr projects requirements.
* Removes redundant "depends on" from Kconfig.

Change-Id: I46a156581cdf79d0ba8f0030ce7b595469db1bcb
Signed-off-by: Vincenzo Frascino <vincenzo.frascino@linaro.org>
This commit is contained in:
Vincenzo Frascino 2016-11-15 17:39:01 +00:00 committed by Kumar Gala
commit c3b54339da

View file

@ -80,28 +80,24 @@ if ADC_TI_ADC108S102
config ADC_TI_ADC108S102_SPI_PORT_NAME
string "Master SPI port name"
depends on ADC_TI_ADC108S102
default ""
help
Master SPI port name through which adc108s102 chip is accessed.
config ADC_TI_ADC108S102_SPI_CONFIGURATION
hex "Master SPI port configuration"
depends on ADC_TI_ADC108S102
default 0x0
help
Master SPI port configuration flags used to access adc108s102 chip.
config ADC_TI_ADC108S102_SPI_MAX_FREQ
hex "Master SPI port max frequency"
depends on ADC_TI_ADC108S102
default 0x0
help
Master SPI port maximum frequency used to access adc108s102 chip.
config ADC_TI_ADC108S102_SPI_SLAVE
int "SPI slave slot"
depends on ADC_TI_ADC108S102
default 0
help
adc108s102 chip's SPI slave number on master SPI port.
@ -121,7 +117,6 @@ if ADC_DW
config ADC_DW_CALIBRATION
bool "Enable Calibration"
default y
depends on ADC_DW
help
Enables ADC to run with a calibrated output at the
expense of execution speed when exiting low power states.
@ -131,7 +126,6 @@ config ADC_DW_CALIBRATION
config ADC_DW_DUMMY_CONVERSION
bool "Enable dummy conversion"
default y
depends on ADC_DW
help
After awaking from low power state a dummy
conversion must be performed and discarded.
@ -141,7 +135,6 @@ config ADC_DW_DUMMY_CONVERSION
choice
prompt "Output Mode"
default ADC_DW_SERIAL
depends on ADC_DW
help
ADC output mode: parallel or serial.
@ -156,7 +149,6 @@ endchoice
choice
prompt "Sequence Mode"
default ADC_DW_SINGLESHOT
depends on ADC_DW
help
ADC sequence mode - single run/repetitive
@ -171,7 +163,6 @@ endchoice
choice
prompt "Capture Mode"
default ADC_DW_RISING_EDGE
depends on ADC_DW
help
ADC controller capture mode:
by rising or falling edge of adc_clk
@ -186,7 +177,6 @@ endchoice
config ADC_DW_SAMPLE_WIDTH
int "Sample Width"
depends on ADC_DW
default 31
help
Defines ADC device data sample width (resolution):
@ -213,7 +203,7 @@ config ADC_DW_CLOCK_RATIO
help
ADC Clock Ratio
endif
endif # ADC_DW
menuconfig ADC_QMSI
bool "QMSI ADC Driver"