]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
spi: xilinx_spi: Trivial fixes in axi qspi driver
authorT Karthik Reddy <t.karthik.reddy@xilinx.com>
Wed, 17 Mar 2021 07:01:50 +0000 (01:01 -0600)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Mar 2021 10:03:24 +0000 (12:03 +0200)
Use __func__ instead for function name in debug.
Use Linux style u32 instead of uint32_t.

Signed-off-by: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Acked-by: Ashok Reddy Soma <ashok.reddy.soma@xilinx.com>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
drivers/spi/xilinx_spi.c

index 0274afdc6e0d84377422883cc8ac681f9195d7b6..b892cdae9babc1df41b3ce752af7cd44d9082f14 100644 (file)
@@ -314,8 +314,7 @@ static int xilinx_spi_set_speed(struct udevice *bus, uint speed)
 
        priv->freq = speed;
 
-       debug("xilinx_spi_set_speed: regs=%p, speed=%d\n", priv->regs,
-             priv->freq);
+       debug("%s: regs=%p, speed=%d\n", __func__, priv->regs, priv->freq);
 
        return 0;
 }
@@ -324,7 +323,7 @@ static int xilinx_spi_set_mode(struct udevice *bus, uint mode)
 {
        struct xilinx_spi_priv *priv = dev_get_priv(bus);
        struct xilinx_spi_regs *regs = priv->regs;
-       uint32_t spicr;
+       u32 spicr;
 
        spicr = readl(&regs->spicr);
        if (mode & SPI_LSB_FIRST)
@@ -339,8 +338,7 @@ static int xilinx_spi_set_mode(struct udevice *bus, uint mode)
        writel(spicr, &regs->spicr);
        priv->mode = mode;
 
-       debug("xilinx_spi_set_mode: regs=%p, mode=%d\n", priv->regs,
-             priv->mode);
+       debug("%s: regs=%p, mode=%d\n", __func__, priv->regs, priv->mode);
 
        return 0;
 }