diff --git a/drivers/input/Kconfig b/drivers/input/Kconfig index aafb5007b2..b57aab8a88 100644 --- a/drivers/input/Kconfig +++ b/drivers/input/Kconfig @@ -74,7 +74,7 @@ config ADS7843E_DEVMINOR config ADS7843E_SPIMODE int "SPI mode" default 0 - range 0,3 + range 0 3 ---help--- Controls the SPI mode. The device should work in mode 0, but sometimes you need to experiment. diff --git a/drivers/lcd/Kconfig b/drivers/lcd/Kconfig index 38c490deb5..1dbee51137 100644 --- a/drivers/lcd/Kconfig +++ b/drivers/lcd/Kconfig @@ -48,7 +48,7 @@ if LCD_P14201 config P14201_NINTERFACES int "Number of physical P14201 devices" default 1 - range 1,1 + range 1 1 ---help--- Specifies the number of physical P14201 devices that will be supported. @@ -56,7 +56,7 @@ config P14201_NINTERFACES config P14201_SPIMODE int "SPI mode" default 2 - range 0,3 + range 0 3 ---help--- Controls the SPI mode @@ -93,7 +93,7 @@ if LCD_NOKIA6100 config NOKIA6100_NINTERFACES int "Number of physical NOKIA6100 devices" default 1 - range 1,1 + range 1 1 ---help--- Specifies the number of physical Nokia 6100 devices that will be supported. @@ -115,7 +115,7 @@ endchoice config NOKIA6100_SPIMODE int "SPI mode" default 0 - range 0,3 + range 0 3 ---help--- Controls the SPI mode @@ -141,42 +141,42 @@ config NOKIA6100_BPP config NOKIA6100_INVERT int "Display inversion" default 1 - range 0,1 + range 0 1 ---help--- Display inversion, 0 or 1, Default: 1 config NOKIA6100_MY int "Display row direction" default 0 - range 0,1 + range 0 1 ---help--- Display row direction, 0 or 1, Default: 0 config NOKIA6100_MX int "Display column direction" default 1 - range 0,1 + range 0 1 ---help--- Display column direction, 0 or 1, Default: 1 config NOKIA6100_V int "Display address direction" default 0 - range 0,1 + range 0 1 ---help--- Display address direction, 0 or 1, Default: 0 config NOKIA6100_ML int "Display scan direction" default 0 - range 0,1 + range 0 1 ---help--- Display scan direction, 0 or 1, Default: 0 config NOKIA6100_RGBORD int "Display RGB order" default 0 - range 0,1 + range 0 1 ---help--- Display RGB order, 0 or 1, Default: 0 Required LCD driver settings: diff --git a/tools/kconfig2html.c b/tools/kconfig2html.c index 539e44ffe3..532522c16e 100644 --- a/tools/kconfig2html.c +++ b/tools/kconfig2html.c @@ -77,6 +77,7 @@ enum token_type_e TOKEN_HEX, TOKEN_STRING, TOKEN_DEFAULT, + TOKEN_RANGE, TOKEN_SELECT, TOKEN_DEPENDS, TOKEN_ON, @@ -138,6 +139,8 @@ struct config_s char *cname; char *cdesc; char *cdefault; + char *clower; + char *cupper; char *cselect[MAX_SELECT]; int cnselect; int cndependencies; @@ -188,6 +191,7 @@ static struct reserved_s g_reserved[] = {TOKEN_HEX, "hex"}, {TOKEN_STRING, "string"}, {TOKEN_DEFAULT, "default"}, + {TOKEN_RANGE, "range"}, {TOKEN_SELECT, "select"}, {TOKEN_DEPENDS, "depends"}, {TOKEN_ON, "on"}, @@ -1006,6 +1010,24 @@ static inline char *process_config(FILE *stream, const char *configname, } break; + case TOKEN_RANGE: + { + char *value = strtok_r(NULL, " ,", &g_lasts); + if (value) + { + config.clower = strdup(value); + + value = strtok_r(NULL, " ", &g_lasts); + if (value) + { + config.cupper = strdup(value); + } + } + + token = NULL; + } + break; + case TOKEN_SELECT: { char *value; @@ -1129,6 +1151,26 @@ static inline char *process_config(FILE *stream, const char *configname, body("