spi: lpspi: use the core way to implement cs-gpio function
authorClark Wang <xiaoning.wang@nxp.com>
Wed, 6 Mar 2019 06:30:43 +0000 (06:30 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 18 Mar 2019 12:17:30 +0000 (12:17 +0000)
commitc7a402599504384efe0e5232a4c78cb8eb7cb3d0
tree1b5192eddc5b38138d021aa05cc7da3ce867404d
parent77736a98b859e2c64aebbd0f90b2ce4b17682396
spi: lpspi: use the core way to implement cs-gpio function

Use the default implementation of transfer_one_msg/chipselect/setup
functions in spi core to implement cs-gpio control.
Use fsl_lpspi_prepare_message to init the cs_gpio pin.

Signed-off-by: Clark Wang <xiaoning.wang@nxp.com>
Acked-by: Fugang Duan <Fugang.duan@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-fsl-lpspi.c