linux/drivers/staging/mt7621-mmc
Christian Lütke-Stetzkamp 0b78f05d51 staging: mt7621-mmc: Correct datatypes for io and sanitize io access
Current code discard the address space information on the base address
of the mmc controller, that causes sparse warnings. It uses the raw
read write function, that is correct for the mips architecture (little
endian), but for portability the non-raw function should be used. Also
the clear/set bit macros do direct memory access, that is also correct
for mips, but not portable.

So the type of the base address is changed to void __iomem *, that is
the type returned by the ioremap function. The set/clear bit macros
are changed to functions, that use the portable read and write
functions. The use of the raw access functions is changed to use the
non-raw ones.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Reviewed-by: NeilBrown <neil@brown.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-04-25 15:36:19 +02:00
..
board.h staging: mt7621-mmc: Remove unused field data_offset from msdc_hw 2018-04-23 15:37:49 +02:00
dbg.c staging: mt7621-mmc: Change default transfer mode to DMA 2018-04-23 15:37:55 +02:00
dbg.h staging: mt7621-mmc: Remove error message in debug 2018-04-23 15:36:31 +02:00
Kconfig
Makefile
mt6575_sd.h staging: mt7621-mmc: Correct datatypes for io and sanitize io access 2018-04-25 15:36:19 +02:00
sd.c staging: mt7621-mmc: Correct datatypes for io and sanitize io access 2018-04-25 15:36:19 +02:00
TODO