]> git.sur5r.net Git - u-boot/commitdiff
serial: zynq: Make zynq_serial_setbrg static
authorMichal Simek <michal.simek@xilinx.com>
Thu, 14 Jun 2018 09:19:57 +0000 (11:19 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Fri, 15 Jun 2018 06:54:05 +0000 (08:54 +0200)
This function is used only inside this driver that's why should be
static.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/serial/serial_zynq.c

index cc14bfa39cff132896e2fa3909ecc434412fbbe0..a191772ff0403240128475099c27d5609f661e54 100644 (file)
@@ -103,7 +103,7 @@ static int _uart_zynq_serial_putc(struct uart_zynq *regs, const char c)
        return 0;
 }
 
-int zynq_serial_setbrg(struct udevice *dev, int baudrate)
+static int zynq_serial_setbrg(struct udevice *dev, int baudrate)
 {
        struct zynq_uart_priv *priv = dev_get_priv(dev);
        unsigned long clock;