diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-03 16:55:20 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-13 16:51:09 -0700 |
commit | c69cda25c9b59e53a6bc8969ada58942549f5b5d (patch) | |
tree | 8c84d1773465eb8e06cbbaeb710daa6217f5618d /drivers/serial/serial_zynq.c | |
parent | 4f50086ad6d69c355a07389fb436c64c92ec614a (diff) | |
download | u-boot-c69cda25c9b59e53a6bc8969ada58942549f5b5d.zip u-boot-c69cda25c9b59e53a6bc8969ada58942549f5b5d.tar.gz u-boot-c69cda25c9b59e53a6bc8969ada58942549f5b5d.tar.bz2 |
dm: treewide: Rename dev_get_platdata() to dev_get_plat()
Rename this to be consistent with the change from 'platdata'.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/serial/serial_zynq.c')
-rw-r--r-- | drivers/serial/serial_zynq.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/serial/serial_zynq.c b/drivers/serial/serial_zynq.c index 7984b61..1bcdf8c 100644 --- a/drivers/serial/serial_zynq.c +++ b/drivers/serial/serial_zynq.c @@ -107,7 +107,7 @@ static int _uart_zynq_serial_putc(struct uart_zynq *regs, const char c) static int zynq_serial_setbrg(struct udevice *dev, int baudrate) { - struct zynq_uart_platdata *plat = dev_get_platdata(dev); + struct zynq_uart_platdata *plat = dev_get_plat(dev); unsigned long clock; int ret; @@ -139,7 +139,7 @@ static int zynq_serial_setbrg(struct udevice *dev, int baudrate) static int zynq_serial_probe(struct udevice *dev) { - struct zynq_uart_platdata *plat = dev_get_platdata(dev); + struct zynq_uart_platdata *plat = dev_get_plat(dev); struct uart_zynq *regs = plat->regs; u32 val; @@ -155,7 +155,7 @@ static int zynq_serial_probe(struct udevice *dev) static int zynq_serial_getc(struct udevice *dev) { - struct zynq_uart_platdata *plat = dev_get_platdata(dev); + struct zynq_uart_platdata *plat = dev_get_plat(dev); struct uart_zynq *regs = plat->regs; if (readl(®s->channel_sts) & ZYNQ_UART_SR_RXEMPTY) @@ -166,14 +166,14 @@ static int zynq_serial_getc(struct udevice *dev) static int zynq_serial_putc(struct udevice *dev, const char ch) { - struct zynq_uart_platdata *plat = dev_get_platdata(dev); + struct zynq_uart_platdata *plat = dev_get_plat(dev); return _uart_zynq_serial_putc(plat->regs, ch); } static int zynq_serial_pending(struct udevice *dev, bool input) { - struct zynq_uart_platdata *plat = dev_get_platdata(dev); + struct zynq_uart_platdata *plat = dev_get_plat(dev); struct uart_zynq *regs = plat->regs; if (input) @@ -184,7 +184,7 @@ static int zynq_serial_pending(struct udevice *dev, bool input) static int zynq_serial_ofdata_to_platdata(struct udevice *dev) { - struct zynq_uart_platdata *plat = dev_get_platdata(dev); + struct zynq_uart_platdata *plat = dev_get_plat(dev); plat->regs = (struct uart_zynq *)dev_read_addr(dev); if (IS_ERR(plat->regs)) |