spi: atmel: factorize reusable code for SPI controller init
authorQuentin Schulz <quentin.schulz@free-electrons.com>
Wed, 12 Apr 2017 07:05:19 +0000 (09:05 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 12 Apr 2017 09:47:52 +0000 (10:47 +0100)
commit05514c86965f98f9b0e57f73700771fa267050a7
tree7ea3c5048921947f0ac983d9dab88412e9fd4dbc
parentfafd67940774733fa97f4b09412aea6981b82e0a
spi: atmel: factorize reusable code for SPI controller init

The SPI controller configuration during the init can be reused, for the
resume function for example.

Let's move this configuration to a separate function.

Signed-off-by: Quentin Schulz <quentin.schulz@free-electrons.com>
Acked-by: Nicolas Ferre <nicolas.ferre@microchip.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-atmel.c