Skip to content

Commit

Permalink
spi: spi-cadence: Update ISR status variable type to irqreturn_t
Browse files Browse the repository at this point in the history
Data type of status variable, that hold the return value of the ISR,
should be irqreturn_t & not u32. This patch updates status variable type
to irqreturn_t.

Signed-off-by: Amit Kumar Mahapatra <amit.kumar-mahapatra@xilinx.com>
Link: https://lore.kernel.org/r/20220512145025.20205-1-amit.kumar-mahapatra@xilinx.com
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Amit Kumar Mahapatra authored and Mark Brown committed May 13, 2022
1 parent 75d6fe4 commit 22d35e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/spi/spi-cadence.c
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,8 @@ static irqreturn_t cdns_spi_irq(int irq, void *dev_id)
{
struct spi_master *master = dev_id;
struct cdns_spi *xspi = spi_master_get_devdata(master);
u32 intr_status, status;
irqreturn_t status;
u32 intr_status;

status = IRQ_NONE;
intr_status = cdns_spi_read(xspi, CDNS_SPI_ISR);
Expand Down

0 comments on commit 22d35e4

Please sign in to comment.