From: chao bi Date: Thu, 25 Oct 2012 01:02:32 +0000 (+0800) Subject: serial: ifx6x60: different SPI word width configure requires different swap process X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~83^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=319fb0d21907f771d8ccdb6177fb2fcafabc6ab4;p=pandora-kernel.git serial: ifx6x60: different SPI word width configure requires different swap process SPI protocol driver only provide one function (swap_buf()) to swap SPI data into big endian format, which is only available when SPI controller's word width is 16 bits. But word width could be configured as 8/16/32 bits, different word width configure should be mapped to different swap methods.This patch is to make SPI protocol driver choose the right swap function corresponding to SPI word width configuration. cc: liu chuansheng cc: Chen Jun Signed-off-by: channing Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed