diff options
author | Gao Pan <pandy.gao@nxp.com> | 2016-11-24 12:04:44 +0100 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2016-11-25 14:04:41 +0100 |
commit | 3ffa1a5dc696f661754bf145813433fda92371b2 (patch) | |
tree | 00dadd3ad3a993a6d3c8fe64377ef5262b289a55 /drivers/mfd/mc13xxx-i2c.c | |
parent | spi: imx: add devicetree binding for lpspi (diff) | |
download | linux-3ffa1a5dc696f661754bf145813433fda92371b2.tar.xz linux-3ffa1a5dc696f661754bf145813433fda92371b2.zip |
spi: imx: use prepare_transfer_hardware() for lpspi
The old driver enable clk in fsl_lpspi_prepare_message() and
disable clk in fsl_lpspi_unprepare_message().
Rather than doing this per message it's a bit better to do it
in prepare_transfer_hardware(), that way if there's a sequence
of messages queued one after another we don't turn the clock on
and off all the time.
Signed-off-by: Gao Pan <pandy.gao@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'drivers/mfd/mc13xxx-i2c.c')
0 files changed, 0 insertions, 0 deletions