projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2c74272
)
Revert "cmd: button: store button state in the 'button' env"
81/250081/2
author
Marek Szyprowski
<m.szyprowski@samsung.com>
Wed, 16 Dec 2020 07:24:21 +0000
(08:24 +0100)
committer
Seung-Woo Kim
<sw0312.kim@samsung.com>
Mon, 21 Dec 2020 00:40:29 +0000
(
00:40
+0000)
This reverts commit
5c353ca0b9e417b5f0d0705cc47abc090254a2e4
.
It will be replaced by the other solution backported from mainline uboot.
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Change-Id: Ibe99ff758273bee72058e83aeeb963f9f456529d
cmd/button.c
patch
|
blob
|
history
diff --git
a/cmd/button.c
b/cmd/button.c
index 43bb19c0fc113bdecd73648903a68a964868c100..84ad1653c7b5b1dcdfb0089cd0756548cb7280a5 100644
(file)
--- a/
cmd/button.c
+++ b/
cmd/button.c
@@
-23,10
+23,8
@@
static int show_button_state(struct udevice *dev)
ret = button_get_state(dev);
if (ret >= BUTTON_COUNT)
ret = -EINVAL;
- if (ret >= 0)
{
+ if (ret >= 0)
printf("%s\n", state_label[ret]);
- env_set("button", state_label[ret]);
- }
return ret;
}