From 3586d422b8e5e6ac801775726c28698ba8e3f373 Mon Sep 17 00:00:00 2001 From: Marek Szyprowski Date: Wed, 16 Dec 2020 08:24:21 +0100 Subject: [PATCH] Revert "cmd: button: store button state in the 'button' env" This reverts commit 5c353ca0b9e417b5f0d0705cc47abc090254a2e4. It will be replaced by the other solution backported from mainline uboot. Signed-off-by: Marek Szyprowski Change-Id: Ibe99ff758273bee72058e83aeeb963f9f456529d --- cmd/button.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/cmd/button.c b/cmd/button.c index 43bb19c0fc..84ad1653c7 100644 --- 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; } -- 2.34.1