Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9ca1273b authored by Dan Carpenter's avatar Dan Carpenter Committed by Mark Brown
Browse files

spi/xilinx: signedness issue checking platform_get_irq()



In xilinx_spi_probe() we use xspi->irq to store negative error codes so
it has to be signed.  We weren't going to use the upper bit any way so
this is fine.

Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 7b3b7432
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -82,7 +82,7 @@ struct xilinx_spi {
	struct completion done;
	struct completion done;
	void __iomem	*regs;	/* virt. address of the control registers */
	void __iomem	*regs;	/* virt. address of the control registers */


	u32		irq;
	int		irq;


	u8 *rx_ptr;		/* pointer in the Tx buffer */
	u8 *rx_ptr;		/* pointer in the Tx buffer */
	const u8 *tx_ptr;	/* pointer in the Rx buffer */
	const u8 *tx_ptr;	/* pointer in the Rx buffer */