summaryrefslogtreecommitdiffstats
path: root/drivers/target
diff options
context:
space:
mode:
authorIllia Smyrnov <illia.smyrnov@ti.com>2013-06-14 18:12:07 +0200
committerMark Brown <broonie@linaro.org>2013-06-17 11:13:29 +0200
commit56cd5c1578135120d73a7054140855728f8cca36 (patch)
treebd3b9af0fadf61034e56601f8de30bc0eaa259a4 /drivers/target
parentspi/omap2: Let device core handle pinctrl (diff)
downloadlinux-56cd5c1578135120d73a7054140855728f8cca36.tar.xz
linux-56cd5c1578135120d73a7054140855728f8cca36.zip
spi: omap2-mcspi: Move bytes per word calculation to the function
Introduce mcspi_bytes_per_word function as replacement for the next code fragment: int c = (word_len <= 8) ? 1 : (word_len <= 16) ? 2 : /* word_len <= 32 */ 4; This code used 2 times in current driver code and will be used 2 times in the next FIFO buffer support patch. Replace it with inline function with clear name to improve code legibility. Signed-off-by: Illia Smyrnov <illia.smyrnov@ti.com> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/target')
0 files changed, 0 insertions, 0 deletions