mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-18 22:14:16 +00:00
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 <darshanrathod475@gmail.com> Link: https://patch.msgid.link/20250710045058.1325-1-darshanrathod475@gmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
defe01abfb
commit
469d7ea8e9
1 changed files with 3 additions and 2 deletions
|
@ -89,8 +89,8 @@ struct xilinx_spi {
|
|||
u8 bytes_per_word;
|
||||
int buffer_size; /* buffer size in words */
|
||||
u32 cs_inactive; /* Level of the CS pins when inactive*/
|
||||
unsigned int (*read_fn)(void __iomem *);
|
||||
void (*write_fn)(u32, void __iomem *);
|
||||
unsigned int (*read_fn)(void __iomem *addr);
|
||||
void (*write_fn)(u32 val, void __iomem *addr);
|
||||
};
|
||||
|
||||
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)
|
|||
if (xspi->irq >= 0 &&
|
||||
(xspi->force_irq || remaining_words > xspi->buffer_size)) {
|
||||
u32 isr;
|
||||
|
||||
use_irq = true;
|
||||
/* Inhibit irq to avoid spurious irqs on tx_empty*/
|
||||
cr = xspi->read_fn(xspi->regs + XSPI_CR_OFFSET);
|
||||
|
|
Loading…
Add table
Reference in a new issue