From: Simon Glass Date: Fri, 28 Dec 2018 14:23:07 -0700 Subject: [U-Boot] [PATCH v2 1/5] serial: Move new functions to serial.h In-Reply-To: <20181228212311.134463-1-sjg@chromium.org> References: <20181228212311.134463-1-sjg@chromium.org> Message-ID: <20181228212311.134463-2-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de We should not be adding new functions to common.h. Move these recently added functions to serial.h. Signed-off-by: Simon Glass Reviewed-by: Andy Shevchenko --- Changes in v2: None include/common.h | 5 ----- include/serial.h | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/include/common.h b/include/common.h index 657cc404cfa..028a735a5c7 100644 --- a/include/common.h +++ b/include/common.h @@ -350,8 +350,6 @@ void smp_set_core_boot_addr(unsigned long addr, int corenr); void smp_kick_all_cpus(void); /* $(CPU)/serial.c */ -struct serial_device_info; - int serial_init (void); void serial_setbrg (void); void serial_putc (const char); @@ -359,9 +357,6 @@ void serial_putc_raw(const char); void serial_puts (const char *); int serial_getc (void); int serial_tstc (void); -int serial_getconfig(uint *config); -int serial_setconfig(uint config); -int serial_getinfo(struct serial_device_info *info); /* $(CPU)/speed.c */ int get_clocks (void); diff --git a/include/serial.h b/include/serial.h index c1a9fee250e..fa7e0130bd2 100644 --- a/include/serial.h +++ b/include/serial.h @@ -281,6 +281,10 @@ struct serial_dev_priv { /* Access the serial operations for a device */ #define serial_get_ops(dev) ((struct dm_serial_ops *)(dev)->driver->ops) +int serial_getconfig(uint *config); +int serial_setconfig(uint config); +int serial_getinfo(struct serial_device_info *info); + void atmel_serial_initialize(void); void mcf_serial_initialize(void); void mpc85xx_serial_initialize(void); -- 2.20.1.415.g653613c723-goog