Commit 97b95c11 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Mark Brown

spi: rspi: Use u8 for 8-bit register values

Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 2aae80b2
......@@ -160,7 +160,7 @@ struct rspi_data {
wait_queue_head_t wait;
spinlock_t lock;
struct clk *clk;
unsigned char spsr;
u8 spsr;
const struct spi_ops *ops;
/* for dmaengine */
......@@ -514,7 +514,7 @@ static int rspi_send_dma(struct rspi_data *rspi, struct spi_transfer *t)
static void rspi_receive_init(const struct rspi_data *rspi)
{
unsigned char spsr;
u8 spsr;
spsr = rspi_read8(rspi, RSPI_SPSR);
if (spsr & SPSR_SPRF)
......@@ -562,7 +562,7 @@ static int rspi_receive_pio(struct rspi_data *rspi, struct spi_message *mesg,
static void qspi_receive_init(const struct rspi_data *rspi)
{
unsigned char spsr;
u8 spsr;
spsr = rspi_read8(rspi, RSPI_SPSR);
if (spsr & SPSR_SPRF)
......@@ -807,9 +807,9 @@ static void rspi_cleanup(struct spi_device *spi)
static irqreturn_t rspi_irq(int irq, void *_sr)
{
struct rspi_data *rspi = _sr;
unsigned long spsr;
u8 spsr;
irqreturn_t ret = IRQ_NONE;
unsigned char disable_irq = 0;
u8 disable_irq = 0;
rspi->spsr = spsr = rspi_read8(rspi, RSPI_SPSR);
if (spsr & SPSR_SPRF)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment