
Hi Chao,
On 18/11/2013 07:34, Chao Fu wrote:
From: Chao Fu B44548@freescale.com
Freescale DSPI module is used on both the ColdFire platform and the ARM platform. The original DSPI driver is written for ColdFire platform only, this patch rewrite the driver to make it be used across the platforms. The rewrite including the following changes:
Rename the file name : cf_spi.c -> fsl_dspi.c Move the file: arch/m68k/include/asm/coldfire/dspi.h -> include/fsl_dspi.h Rename the functions and variables: cfxxx -> dspixxx Keep the following functions for ColdFire: cfspi_port_conf() cfspi_claim_bus() cfspi_release_bus()
Signed-off-by: Chao Fu B44548@freescale.com
arch/m68k/include/asm/coldfire/dspi.h | 142 -------------- drivers/spi/Makefile | 2 +- drivers/spi/cf_spi.c | 347 --------------------------------- drivers/spi/fsl_dspi.c | 352 ++++++++++++++++++++++++++++++++++ include/fsl_dspi.h | 147 ++++++++++++++ 5 files changed, 500 insertions(+), 490 deletions(-) delete mode 100644 arch/m68k/include/asm/coldfire/dspi.h delete mode 100644 drivers/spi/cf_spi.c create mode 100644 drivers/spi/fsl_dspi.c create mode 100644 include/fsl_dspi.h
When you deal with renaming and moving, you should add the option -C to git format-patch. This let git to recognize if a file is moved without deleting and creating the same file.
Best regards, Stefano Babic