]> git.dujemihanovic.xyz Git - u-boot.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)
commit30d66db78725e8396a3bd255cc51592c6cd7879d
tree90d70ab789bfb6e85522a989ca9631174bf45a60
parent037a56d6b1e2a2ce45454b2629800ee5e7f6b46e
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