Re: [PATCH v3 1/2] spi: omap2-mcspi: Move bytes per word calculation to the function

2013-06-17 Thread Mark Brown
On Fri, Jun 14, 2013 at 07:12:07PM +0300, Illia Smyrnov wrote: Introduce mcspi_bytes_per_word function as replacement for the next code fragment: Applied, thanks. signature.asc Description: Digital signature

[PATCH v3 1/2] spi: omap2-mcspi: Move bytes per word calculation to the function

2013-06-14 Thread Illia Smyrnov
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