aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-rspi.c
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>2013-11-26 19:41:44 -0500
committerMark Brown <broonie@linaro.org>2013-11-27 11:31:31 -0500
commit8e1c8096faae6b8ac788a1bbeeea126044cb485a (patch)
tree2de403de99378c18ae5ddeb36100c4d3118c70c0 /drivers/spi/spi-rspi.c
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
spi: rcar: Fix uninitialized variable warning
The transfer data length variable is set based on the desired access size, without a default case. This results in a compiler warning, even though the access size is always set to a supported value. Create a default case to silence the warning. Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-rspi.c')
-rw-r--r--drivers/spi/spi-rspi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-rspi.c b/drivers/spi/spi-rspi.c
index 58449ad4ad0d..a3dca1dfd8ab 100644
--- a/drivers/spi/spi-rspi.c
+++ b/drivers/spi/spi-rspi.c
@@ -268,7 +268,7 @@ static int qspi_set_config_register(struct rspi_data *rspi, int access_size)
268 spcmd = SPCMD_SPB_8BIT; 268 spcmd = SPCMD_SPB_8BIT;
269 else if (access_size == 16) 269 else if (access_size == 16)
270 spcmd = SPCMD_SPB_16BIT; 270 spcmd = SPCMD_SPB_16BIT;
271 else if (access_size == 32) 271 else
272 spcmd = SPCMD_SPB_32BIT; 272 spcmd = SPCMD_SPB_32BIT;
273 273
274 spcmd |= SPCMD_SCKDEN | SPCMD_SLNDEN | SPCMD_SSLKP | SPCMD_SPNDEN; 274 spcmd |= SPCMD_SCKDEN | SPCMD_SLNDEN | SPCMD_SSLKP | SPCMD_SPNDEN;