linux/drivers/spi
H Hartley Sweeten 7eb187b3cd spi: spi-dw: fix all sparse warnings
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: H Hartley Sweeten <hsweeten@visionengravers.com>
Acked-by: Feng Tang <feng.tang@intel.com>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
2011-09-21 09:41:48 -06:00
..
Kconfig spi/imx: use soc name in spi device type naming scheme 2011-07-14 13:47:02 -06:00
Makefile spi: remove obsolete spi-s3c24xx-gpio driver 2011-07-04 10:52:58 -06:00
spi-altera.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-ath79.c spi: Convert uses of struct resource * to resource_size(ptr) 2011-06-10 23:43:41 -06:00
spi-atmel.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-au1550.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-bfin5xx.c spi/bfin_spi: uninline fat queue funcs 2011-06-17 08:35:58 -06:00
spi-bfin-sport.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-bitbang-txrx.h spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-bitbang.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-butterfly.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-coldfire-qspi.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-davinci.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-dw-mid.c spi: spi-dw: fix all sparse warnings 2011-09-21 09:41:48 -06:00
spi-dw-mmio.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-dw-pci.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-dw.c spi: spi-dw: fix all sparse warnings 2011-09-21 09:41:48 -06:00
spi-dw.h spi: spi-dw: fix all sparse warnings 2011-09-21 09:41:48 -06:00
spi-ep93xx.c Merge branch 'ep93xx-dma' into spi/next 2011-06-09 12:42:57 -06:00
spi-fsl-espi.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-fsl-lib.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-fsl-lib.h spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-fsl-spi.c spi/fsl_spi: fix CPM spi driver 2011-07-05 11:59:17 -06:00
spi-gpio.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-imx.c spi/imx: add device tree probe support 2011-07-14 13:47:18 -06:00
spi-lm70llp.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-mpc52xx-psc.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-mpc52xx.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-mpc512x-psc.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-nuc900.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-oc-tiny.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-omap2-mcspi.c spi: Convert uses of struct resource * to resource_size(ptr) 2011-06-10 23:43:41 -06:00
spi-omap-100k.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-omap-uwire.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-orion.c spi: Convert uses of struct resource * to resource_size(ptr) 2011-06-10 23:43:41 -06:00
spi-pl022.c spi/spi-pl022: Call pl022_dma_remove(pl022) only if enable_dma is true 2011-09-21 09:41:48 -06:00
spi-ppc4xx.c spi: Convert uses of struct resource * to resource_size(ptr) 2011-06-10 23:43:41 -06:00
spi-pxa2xx-pci.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-pxa2xx.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-s3c24xx-fiq.h spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-s3c24xx-fiq.S spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-s3c24xx.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-s3c64xx.c Merge branch 'spi/next' of git://git.secretlab.ca/git/linux-2.6 2011-07-22 14:52:44 -07:00
spi-sh-msiof.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-sh-sci.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-sh.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-stmp.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-tegra.c spi/tegra: Use engineering names in DT compatible property 2011-07-05 23:38:30 -06:00
spi-ti-ssp.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-tle62x0.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-topcliff-pch.c spi/topcliff-pch: Support new device ML7223 IOH 2011-06-16 18:49:23 -06:00
spi-txx9.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi-xilinx.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spi.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00
spidev.c spi: reorganize drivers 2011-06-06 01:16:30 -06:00