summaryrefslogtreecommitdiff
path: root/drivers/serial
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-19 20:39:53 +0300
committerSimon Glass <sjg@chromium.org>2021-01-05 22:24:41 +0300
commitbfae6cc48afa5bc22703c93af70b27501900f56a (patch)
tree2d83c036b74947e463fbc1e29697f437084c1ee0 /drivers/serial
parent10bb90fa30e6e4479a06982e074bb8b3b981301d (diff)
downloadu-boot-bfae6cc48afa5bc22703c93af70b27501900f56a.tar.xz
sandbox: serial: Move priv into a header file
Move this struct into a header file so that dtoc can include it in its dt-platdata.c file. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Diffstat (limited to 'drivers/serial')
-rw-r--r--drivers/serial/sandbox.c16
1 files changed, 1 insertions, 15 deletions
diff --git a/drivers/serial/sandbox.c b/drivers/serial/sandbox.c
index a05c56458b..19368ba256 100644
--- a/drivers/serial/sandbox.c
+++ b/drivers/serial/sandbox.c
@@ -17,25 +17,11 @@
#include <serial.h>
#include <video.h>
#include <linux/compiler.h>
+#include <asm/serial.h>
#include <asm/state.h>
DECLARE_GLOBAL_DATA_PTR;
-struct sandbox_serial_plat {
- int colour; /* Text colour to use for output, -1 for none */
-};
-
-/**
- * struct sandbox_serial_priv - Private data for this driver
- *
- * @buf: holds input characters available to be read by this driver
- */
-struct sandbox_serial_priv {
- struct membuff buf;
- char serial_buf[16];
- bool start_of_line;
-};
-
/**
* output_ansi_colour() - Output an ANSI colour code
*