Skip to content

Commit

Permalink
spi/dw_spi: move dw_spi.h into drivers/spi
Browse files Browse the repository at this point in the history
include/linux/dw_spi.h only includes driver internal data.  It doesn't
expose a platform_data configuration structure or similar (at least
nothing in-tree).  This patch moves the header into drivers/spi so
that the scope is limited to only the dw_spi_*.c driver files

Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
Cc: Feng Tang <feng.tang@intel.com>
Cc: spi-devel-general@lists.sourceforge.net
  • Loading branch information
Grant Likely committed Mar 18, 2011
1 parent 46165a3 commit 568a60e
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions drivers/spi/dw_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@
#include <linux/highmem.h>
#include <linux/delay.h>
#include <linux/slab.h>

#include <linux/spi/dw_spi.h>
#include <linux/spi/spi.h>

#include "dw_spi.h"

#ifdef CONFIG_DEBUG_FS
#include <linux/debugfs.h>
#endif
Expand Down
File renamed without changes.
3 changes: 2 additions & 1 deletion drivers/spi/dw_spi_mid.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#include <linux/interrupt.h>
#include <linux/slab.h>
#include <linux/spi/spi.h>
#include <linux/spi/dw_spi.h>

#include "dw_spi.h"

#ifdef CONFIG_SPI_DW_MID_DMA
#include <linux/intel_mid_dma.h>
Expand Down
4 changes: 3 additions & 1 deletion drivers/spi/dw_spi_mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@
#include <linux/interrupt.h>
#include <linux/platform_device.h>
#include <linux/slab.h>
#include <linux/spi/dw_spi.h>
#include <linux/spi/spi.h>
#include <linux/scatterlist.h>

#include "dw_spi.h"

#define DRIVER_NAME "dw_spi_mmio"

Expand Down
3 changes: 2 additions & 1 deletion drivers/spi/dw_spi_pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@
#include <linux/interrupt.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/spi/dw_spi.h>
#include <linux/spi/spi.h>

#include "dw_spi.h"

#define DRIVER_NAME "dw_spi_pci"

struct dw_spi_pci {
Expand Down

0 comments on commit 568a60e

Please sign in to comment.