spim_nrf52: Fix fall-through in switch statement

When setting the SPIM speed to 8 MHz, the driver will return an error
due to a missing "break" causing the execution flow to reach the default
case.

Signed-off-by: Florian Vaussard <florian.vaussard@gmail.com>
This commit is contained in:
Florian Vaussard 2017-07-20 10:32:33 +02:00 committed by Kumar Gala
commit 9e0d1e4232

View file

@ -139,6 +139,7 @@ static int spim_nrf52_configure(struct device *dev,
break;
case 8000000:
spim->FREQUENCY = SPIM_FREQUENCY_FREQUENCY_M8;
break;
default:
SYS_LOG_ERR("unsupported frequency sck=%d\n",
spi_config->max_sys_freq);