diff options
author | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-11 01:37:08 -0400 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2012-05-11 01:38:47 -0400 |
commit | 1932811f426fee71b7ece67e70aeba7e1b0ebb6d (patch) | |
tree | ffc4598961733707a89e711b4614c8cc14446ad5 /drivers/input/keyboard/Kconfig | |
parent | d0a3457d38adbad37e43ffe6b763360b2bfe71d9 (diff) |
Input: matrix-keymap - uninline and prepare for device tree support
Change matrix-keymap helper to be out-of-line, like sparse keymap,
allow the helper perform basic keymap validation and return errors,
and prepare for device tree support.
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input/keyboard/Kconfig')
-rw-r--r-- | drivers/input/keyboard/Kconfig | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/drivers/input/keyboard/Kconfig b/drivers/input/keyboard/Kconfig index ea4bbaae9e02..c0e11ecc646f 100644 --- a/drivers/input/keyboard/Kconfig +++ b/drivers/input/keyboard/Kconfig | |||
@@ -166,6 +166,7 @@ config KEYBOARD_LKKBD | |||
166 | config KEYBOARD_EP93XX | 166 | config KEYBOARD_EP93XX |
167 | tristate "EP93xx Matrix Keypad support" | 167 | tristate "EP93xx Matrix Keypad support" |
168 | depends on ARCH_EP93XX | 168 | depends on ARCH_EP93XX |
169 | select INPUT_MATRIXKMAP | ||
169 | help | 170 | help |
170 | Say Y here to enable the matrix keypad on the Cirrus EP93XX. | 171 | Say Y here to enable the matrix keypad on the Cirrus EP93XX. |
171 | 172 | ||
@@ -224,6 +225,7 @@ config KEYBOARD_TCA6416 | |||
224 | config KEYBOARD_TCA8418 | 225 | config KEYBOARD_TCA8418 |
225 | tristate "TCA8418 Keypad Support" | 226 | tristate "TCA8418 Keypad Support" |
226 | depends on I2C | 227 | depends on I2C |
228 | select INPUT_MATRIXKMAP | ||
227 | help | 229 | help |
228 | This driver implements basic keypad functionality | 230 | This driver implements basic keypad functionality |
229 | for keys connected through TCA8418 keypad decoder. | 231 | for keys connected through TCA8418 keypad decoder. |
@@ -240,6 +242,7 @@ config KEYBOARD_TCA8418 | |||
240 | config KEYBOARD_MATRIX | 242 | config KEYBOARD_MATRIX |
241 | tristate "GPIO driven matrix keypad support" | 243 | tristate "GPIO driven matrix keypad support" |
242 | depends on GENERIC_GPIO | 244 | depends on GENERIC_GPIO |
245 | select INPUT_MATRIXKMAP | ||
243 | help | 246 | help |
244 | Enable support for GPIO driven matrix keypad. | 247 | Enable support for GPIO driven matrix keypad. |
245 | 248 | ||
@@ -312,6 +315,7 @@ config KEYBOARD_LM8323 | |||
312 | config KEYBOARD_LM8333 | 315 | config KEYBOARD_LM8333 |
313 | tristate "LM8333 keypad chip" | 316 | tristate "LM8333 keypad chip" |
314 | depends on I2C | 317 | depends on I2C |
318 | select INPUT_MATRIXKMAP | ||
315 | help | 319 | help |
316 | If you say yes here you get support for the National Semiconductor | 320 | If you say yes here you get support for the National Semiconductor |
317 | LM8333 keypad controller. | 321 | LM8333 keypad controller. |
@@ -376,6 +380,7 @@ config KEYBOARD_MPR121 | |||
376 | config KEYBOARD_IMX | 380 | config KEYBOARD_IMX |
377 | tristate "IMX keypad support" | 381 | tristate "IMX keypad support" |
378 | depends on ARCH_MXC | 382 | depends on ARCH_MXC |
383 | select INPUT_MATRIXKMAP | ||
379 | help | 384 | help |
380 | Enable support for IMX keypad port. | 385 | Enable support for IMX keypad port. |
381 | 386 | ||
@@ -394,6 +399,7 @@ config KEYBOARD_NEWTON | |||
394 | config KEYBOARD_NOMADIK | 399 | config KEYBOARD_NOMADIK |
395 | tristate "ST-Ericsson Nomadik SKE keyboard" | 400 | tristate "ST-Ericsson Nomadik SKE keyboard" |
396 | depends on PLAT_NOMADIK | 401 | depends on PLAT_NOMADIK |
402 | select INPUT_MATRIXKMAP | ||
397 | help | 403 | help |
398 | Say Y here if you want to use a keypad provided on the SKE controller | 404 | Say Y here if you want to use a keypad provided on the SKE controller |
399 | used on the Ux500 and Nomadik platforms | 405 | used on the Ux500 and Nomadik platforms |
@@ -404,7 +410,7 @@ config KEYBOARD_NOMADIK | |||
404 | config KEYBOARD_TEGRA | 410 | config KEYBOARD_TEGRA |
405 | tristate "NVIDIA Tegra internal matrix keyboard controller support" | 411 | tristate "NVIDIA Tegra internal matrix keyboard controller support" |
406 | depends on ARCH_TEGRA | 412 | depends on ARCH_TEGRA |
407 | select INPUT_OF_MATRIX_KEYMAP if USE_OF | 413 | select INPUT_MATRIXKMAP |
408 | help | 414 | help |
409 | Say Y here if you want to use a matrix keyboard connected directly | 415 | Say Y here if you want to use a matrix keyboard connected directly |
410 | to the internal keyboard controller on Tegra SoCs. | 416 | to the internal keyboard controller on Tegra SoCs. |
@@ -442,6 +448,7 @@ config KEYBOARD_PXA930_ROTARY | |||
442 | config KEYBOARD_PMIC8XXX | 448 | config KEYBOARD_PMIC8XXX |
443 | tristate "Qualcomm PMIC8XXX keypad support" | 449 | tristate "Qualcomm PMIC8XXX keypad support" |
444 | depends on MFD_PM8XXX | 450 | depends on MFD_PM8XXX |
451 | select INPUT_MATRIXKMAP | ||
445 | help | 452 | help |
446 | Say Y here if you want to enable the driver for the PMIC8XXX | 453 | Say Y here if you want to enable the driver for the PMIC8XXX |
447 | keypad provided as a reference design from Qualcomm. This is intended | 454 | keypad provided as a reference design from Qualcomm. This is intended |
@@ -453,6 +460,7 @@ config KEYBOARD_PMIC8XXX | |||
453 | config KEYBOARD_SAMSUNG | 460 | config KEYBOARD_SAMSUNG |
454 | tristate "Samsung keypad support" | 461 | tristate "Samsung keypad support" |
455 | depends on HAVE_CLK | 462 | depends on HAVE_CLK |
463 | select INPUT_MATRIXKMAP | ||
456 | help | 464 | help |
457 | Say Y here if you want to use the keypad on your Samsung mobile | 465 | Say Y here if you want to use the keypad on your Samsung mobile |
458 | device. | 466 | device. |
@@ -495,6 +503,7 @@ config KEYBOARD_SH_KEYSC | |||
495 | config KEYBOARD_STMPE | 503 | config KEYBOARD_STMPE |
496 | tristate "STMPE keypad support" | 504 | tristate "STMPE keypad support" |
497 | depends on MFD_STMPE | 505 | depends on MFD_STMPE |
506 | select INPUT_MATRIXKMAP | ||
498 | help | 507 | help |
499 | Say Y here if you want to use the keypad controller on STMPE I/O | 508 | Say Y here if you want to use the keypad controller on STMPE I/O |
500 | expanders. | 509 | expanders. |
@@ -515,6 +524,7 @@ config KEYBOARD_DAVINCI | |||
515 | config KEYBOARD_OMAP | 524 | config KEYBOARD_OMAP |
516 | tristate "TI OMAP keypad support" | 525 | tristate "TI OMAP keypad support" |
517 | depends on (ARCH_OMAP1 || ARCH_OMAP2) | 526 | depends on (ARCH_OMAP1 || ARCH_OMAP2) |
527 | select INPUT_MATRIXKMAP | ||
518 | help | 528 | help |
519 | Say Y here if you want to use the OMAP keypad. | 529 | Say Y here if you want to use the OMAP keypad. |
520 | 530 | ||
@@ -523,6 +533,7 @@ config KEYBOARD_OMAP | |||
523 | 533 | ||
524 | config KEYBOARD_OMAP4 | 534 | config KEYBOARD_OMAP4 |
525 | tristate "TI OMAP4+ keypad support" | 535 | tristate "TI OMAP4+ keypad support" |
536 | select INPUT_MATRIXKMAP | ||
526 | help | 537 | help |
527 | Say Y here if you want to use the OMAP4+ keypad. | 538 | Say Y here if you want to use the OMAP4+ keypad. |
528 | 539 | ||
@@ -532,6 +543,7 @@ config KEYBOARD_OMAP4 | |||
532 | config KEYBOARD_SPEAR | 543 | config KEYBOARD_SPEAR |
533 | tristate "ST SPEAR keyboard support" | 544 | tristate "ST SPEAR keyboard support" |
534 | depends on PLAT_SPEAR | 545 | depends on PLAT_SPEAR |
546 | select INPUT_MATRIXKMAP | ||
535 | help | 547 | help |
536 | Say Y here if you want to use the SPEAR keyboard. | 548 | Say Y here if you want to use the SPEAR keyboard. |
537 | 549 | ||
@@ -541,6 +553,7 @@ config KEYBOARD_SPEAR | |||
541 | config KEYBOARD_TC3589X | 553 | config KEYBOARD_TC3589X |
542 | tristate "TC3589X Keypad support" | 554 | tristate "TC3589X Keypad support" |
543 | depends on MFD_TC3589X | 555 | depends on MFD_TC3589X |
556 | select INPUT_MATRIXKMAP | ||
544 | help | 557 | help |
545 | Say Y here if you want to use the keypad controller on | 558 | Say Y here if you want to use the keypad controller on |
546 | TC35892/3 I/O expander. | 559 | TC35892/3 I/O expander. |
@@ -551,6 +564,7 @@ config KEYBOARD_TC3589X | |||
551 | config KEYBOARD_TNETV107X | 564 | config KEYBOARD_TNETV107X |
552 | tristate "TI TNETV107X keypad support" | 565 | tristate "TI TNETV107X keypad support" |
553 | depends on ARCH_DAVINCI_TNETV107X | 566 | depends on ARCH_DAVINCI_TNETV107X |
567 | select INPUT_MATRIXKMAP | ||
554 | help | 568 | help |
555 | Say Y here if you want to use the TNETV107X keypad. | 569 | Say Y here if you want to use the TNETV107X keypad. |
556 | 570 | ||
@@ -560,6 +574,7 @@ config KEYBOARD_TNETV107X | |||
560 | config KEYBOARD_TWL4030 | 574 | config KEYBOARD_TWL4030 |
561 | tristate "TI TWL4030/TWL5030/TPS659x0 keypad support" | 575 | tristate "TI TWL4030/TWL5030/TPS659x0 keypad support" |
562 | depends on TWL4030_CORE | 576 | depends on TWL4030_CORE |
577 | select INPUT_MATRIXKMAP | ||
563 | help | 578 | help |
564 | Say Y here if your board use the keypad controller on | 579 | Say Y here if your board use the keypad controller on |
565 | TWL4030 family chips. It's safe to say enable this | 580 | TWL4030 family chips. It's safe to say enable this |
@@ -583,6 +598,7 @@ config KEYBOARD_XTKBD | |||
583 | config KEYBOARD_W90P910 | 598 | config KEYBOARD_W90P910 |
584 | tristate "W90P910 Matrix Keypad support" | 599 | tristate "W90P910 Matrix Keypad support" |
585 | depends on ARCH_W90X900 | 600 | depends on ARCH_W90X900 |
601 | select INPUT_MATRIXKMAP | ||
586 | help | 602 | help |
587 | Say Y here to enable the matrix keypad on evaluation board | 603 | Say Y here to enable the matrix keypad on evaluation board |
588 | based on W90P910. | 604 | based on W90P910. |