spi: davinci: consolidate setup of SPIFMTn in one function
authorBrian Niebuhr <bniebuhr@efjohnson.com>
Thu, 19 Aug 2010 06:45:22 +0000 (12:15 +0530)
committerSekhar Nori <nsekhar@ti.com>
Thu, 18 Nov 2010 13:08:26 +0000 (18:38 +0530)
commit25f33512f6ae7e37d7b3d353d57d4d6d066033ce
tree2c458d56e07f842c78fd31f7e13a28fe1b7a9361
parent53a31b07c5aea4001bbb36ddd5ef2addffc7ccbd
spi: davinci: consolidate setup of SPIFMTn in one function

Consolidate the setup of SPIFMTn register under
davinci_spi_setup_transfer() simplifying the code
and avoiding unnecessary reads and writes to the
register.

The two inline functions {set|clear}_fmt_bits() can
be eliminated because of this.

Signed-off-by: Brian Niebuhr <bniebuhr@efjohnson.com>
Tested-By: Michael Williamson <michael.williamson@criticallink.com>
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
drivers/spi/davinci_spi.c
This page took 0.024864 seconds and 5 git commands to generate.