mirror of
https://github.com/u-boot/u-boot.git
synced 2025-04-16 09:54:35 +00:00
input: button_kbd: make driver complementary to gpio buttons
Remove need of dts binding for button keyboard since it reuses gpio-keys binding. Select gpio-keys driver if button keyboard is selected since button keyboard can not operate on its own. Tested-by: Svyatoslav Ryhel <clamor95@gmail.com> # HTC One X T30 Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com> Reviewed-by: Simon Glass <sjg@chromium.org>
This commit is contained in:
parent
a57adacf50
commit
25df91520e
2 changed files with 5 additions and 7 deletions
|
@ -48,8 +48,8 @@ config APPLE_SPI_KEYB
|
|||
|
||||
config BUTTON_KEYBOARD
|
||||
bool "Buttons as keyboard"
|
||||
depends on BUTTON_GPIO
|
||||
depends on DM_KEYBOARD
|
||||
select BUTTON_GPIO
|
||||
help
|
||||
Enable support for mapping buttons to keycode events. Use linux,code button driver
|
||||
dt node to define button-event mapping.
|
||||
|
|
|
@ -111,16 +111,14 @@ static int button_kbd_probe(struct udevice *dev)
|
|||
return 0;
|
||||
}
|
||||
|
||||
static const struct udevice_id button_kbd_ids[] = {
|
||||
{ .compatible = "button-kbd" },
|
||||
{ }
|
||||
};
|
||||
|
||||
U_BOOT_DRIVER(button_kbd) = {
|
||||
.name = "button_kbd",
|
||||
.id = UCLASS_KEYBOARD,
|
||||
.of_match = button_kbd_ids,
|
||||
.ops = &button_kbd_ops,
|
||||
.priv_auto = sizeof(struct button_kbd_priv),
|
||||
.probe = button_kbd_probe,
|
||||
};
|
||||
|
||||
U_BOOT_DRVINFO(button_kbd) = {
|
||||
.name = "button_kbd"
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue