]> git.baikalelectronics.ru Git - kernel.git/commit
staging: mt7621-mmc: Cleanup source of base address for io
authorChristian Lütke-Stetzkamp <christian@lkamp.de>
Sat, 16 Jun 2018 14:14:59 +0000 (16:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Jun 2018 12:48:04 +0000 (21:48 +0900)
commit591c7740297264fc8d1dc33ffd3162ec88002623
treef0f43201b5aa5dfa99a3aab5ca51b9d4251d93c7
parentb43e2364f559dbd9274a93174a5dd0a310977356
staging: mt7621-mmc: Cleanup source of base address for io

Currently the base address for all io operations is hidden behind a
macro, REG_ADD. This macro uses the symbol "base" as the base address
and all functions set base = host->base. This is hard to read, so the
whole wrapping is removed and host->base is directly inserted in the
io access.

Signed-off-by: Christian Lütke-Stetzkamp <christian@lkamp.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/mt7621-mmc/mt6575_sd.h
drivers/staging/mt7621-mmc/sd.c