diff options
| author | Heinrich Schuchardt <[email protected]> | 2022-07-14 08:53:46 +0200 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2022-08-04 15:32:20 -0400 |
| commit | 63de2161e4b50ea2ce22088f6a73520504087a0c (patch) | |
| tree | 66ec1c1c3c23736b475a3fa2fc7c4eb0cf102146 /cmd | |
| parent | 81df9ed45e879fc3cbb79b182f4fba888b3f927f (diff) | |
cmd: remove deprecated LCD support
No board uses lcd_clear() anymore. So we can remove support for it.
Signed-off-by: Heinrich Schuchardt <[email protected]>
Diffstat (limited to 'cmd')
| -rw-r--r-- | cmd/cls.c | 20 |
1 files changed, 6 insertions, 14 deletions
diff --git a/cmd/cls.c b/cmd/cls.c index 502d5ed697a..ba36220d9e1 100644 --- a/cmd/cls.c +++ b/cmd/cls.c @@ -8,7 +8,6 @@ #include <common.h> #include <command.h> #include <dm.h> -#include <lcd.h> #include <video.h> #define CSI "\x1b[" @@ -20,19 +19,12 @@ static int do_video_clear(struct cmd_tbl *cmdtp, int flag, int argc, /* Send clear screen and home */ printf(CSI "2J" CSI "1;1H"); -#if defined(CONFIG_DM_VIDEO) -#if !defined(CONFIG_VIDEO_ANSI) - if (uclass_first_device_err(UCLASS_VIDEO, &dev)) - return CMD_RET_FAILURE; - - if (video_clear(dev)) - return CMD_RET_FAILURE; -#endif -#elif defined(CONFIG_LCD) - lcd_clear(); -#else - return CMD_RET_FAILURE; -#endif + if (CONFIG_IS_ENABLED(DM_VIDEO) && !CONFIG_IS_ENABLED(VIDEO_ANSI)) { + if (uclass_first_device_err(UCLASS_VIDEO, &dev)) + return CMD_RET_FAILURE; + if (video_clear(dev)) + return CMD_RET_FAILURE; + } return CMD_RET_SUCCESS; } |
