Skip to content

Commit 469d7ea

Browse files
Darshanr5051broonie
authored andcommitted
spi: xilinx: Fix block comment style and minor cleanups
This patch fixes block comment style issues and minor code cleanups as reported by checkpatch.pl. Signed-off-by: Darshan Rathod <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent defe01a commit 469d7ea

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/spi/spi-xilinx.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ struct xilinx_spi {
8989
u8 bytes_per_word;
9090
int buffer_size; /* buffer size in words */
9191
u32 cs_inactive; /* Level of the CS pins when inactive*/
92-
unsigned int (*read_fn)(void __iomem *);
93-
void (*write_fn)(u32, void __iomem *);
92+
unsigned int (*read_fn)(void __iomem *addr);
93+
void (*write_fn)(u32 val, void __iomem *addr);
9494
};
9595

9696
static void xspi_write32(u32 val, void __iomem *addr)
@@ -251,6 +251,7 @@ static int xilinx_spi_txrx_bufs(struct spi_device *spi, struct spi_transfer *t)
251251
if (xspi->irq >= 0 &&
252252
(xspi->force_irq || remaining_words > xspi->buffer_size)) {
253253
u32 isr;
254+
254255
use_irq = true;
255256
/* Inhibit irq to avoid spurious irqs on tx_empty*/
256257
cr = xspi->read_fn(xspi->regs + XSPI_CR_OFFSET);

0 commit comments

Comments
 (0)