]> git.baikalelectronics.ru Git - uboot.git/commit
dm: button: add an uclass for button
authorPhilippe Reynes <philippe.reynes@softathome.com>
Fri, 24 Jul 2020 16:19:45 +0000 (18:19 +0200)
committerSimon Glass <sjg@chromium.org>
Wed, 29 Jul 2020 01:30:39 +0000 (19:30 -0600)
commit966a9aab6833a8898179aa093f766502be7bbc62
tree90d70ab789bfb6e85522a989ca9631174bf45a60
parentf8e0668afbcb2ee47807cf59a36d7d323dbe4ea5
dm: button: add an uclass for button

Add a new uclass for button that implements two functions:
- button_get_by_label
- button_get_status

Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Philippe Reynes <philippe.reynes@softathome.com>
drivers/Kconfig
drivers/Makefile
drivers/button/Kconfig [new file with mode: 0644]
drivers/button/Makefile [new file with mode: 0644]
drivers/button/button-uclass.c [new file with mode: 0644]
include/button.h [new file with mode: 0644]
include/dm/uclass-id.h