1. 30 Dec, 2013 1 commit
  2. 21 Sep, 2011 1 commit
    • H Hartley Sweeten's avatar
      spi: spi-dw: fix all sparse warnings · 7eb187b3
      H Hartley Sweeten authored
      The dw_{read,write}[lw] macros produce sparse warnings everytime they
      are used.  The "read" ones cause:
      warning: cast removes address space of expression
      warning: incorrect type in argument 1 (different address spaces)
         expected void const volatile [noderef] <asn:2>*addr
         got unsigned int *<noident>
      And the "write" ones:
      warning: cast removes address space of expression
      warning: incorrect type in argument 2 (different address spaces)
         expected void volatile [noderef] <asn:2>*addr
         got unsigned int *<noident>
      Fix this by removing struct dw_spi_reg and converting all the register
      offsets to #defines. Then convert the macros into inlined functions so
      that proper type checking can occur.
      While here, also fix the three sparse warnings in spi-dw-mid.c due to
      the return value of ioremap_nocache being stored in a u32 * not a
      void __iomem *.
      With these changes the spi-dw* files all build with no sparse warnings.
      Signed-off-by: default avatarH Hartley Sweeten <hsweeten@visionengravers.com>
      Acked-by: default avatarFeng Tang <feng.tang@intel.com>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
  3. 08 Jul, 2011 1 commit
  4. 06 Jun, 2011 1 commit
  5. 31 Mar, 2011 2 commits
  6. 18 Mar, 2011 2 commits
    • Grant Likely's avatar
      spi/dw_spi: move dw_spi.h into drivers/spi · 568a60ed
      Grant Likely authored
      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: default avatarGrant Likely <grant.likely@secretlab.ca>
      Cc: Feng Tang <feng.tang@intel.com>
      Cc: spi-devel-general@lists.sourceforge.net
    • Jiri Slaby's avatar
      spi/dw_spi: Fix missing header · 46165a3d
      Jiri Slaby authored
      Currently, build on PPC dies with:
      In file included from drivers/spi/dw_spi_mmio.c:16:
      include/linux/spi/dw_spi.h:147: error: field ‘tx_sgl’ has incomplete type
      include/linux/spi/dw_spi.h:149: error: field ‘rx_sgl’ has incomplete type
      Add linux/scatterlist.h include to dw_spi.h, because we need to know
      the contents of the structure.
      Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
      Signed-off-by: default avatarGrant Likely <grant.likely@secretlab.ca>
  7. 24 Dec, 2010 1 commit
  8. 08 Sep, 2010 1 commit
  9. 21 Jan, 2010 1 commit
  10. 20 Jan, 2010 1 commit
  11. 17 Dec, 2009 1 commit