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

Signed-off-by: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
This commit is contained in:
Geert Uytterhoeven 2013-12-24 10:49:34 +01:00 committed by Mark Brown
parent 2aae80b27d
commit 97b95c1170

View File

@ -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 @@ end_nomap:
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)