diff options
| author | 2014-12-18 15:04:23 +0200 | |
|---|---|---|
| committer | 2014-12-22 20:17:23 +0000 | |
| commit | c039dd275e88989478abe5f28e4e15648c28ce33 (patch) | |
| tree | d56b3d234011a8726b26e1678a1d786798bb93a8 /lib/mpi/mpi-cmp.c | |
| parent | spi: pxa2xx: Pass driver data instead of ioaddr to wait_ssp_rx_stall() (diff) | |
| download | wireguard-linux-c039dd275e88989478abe5f28e4e15648c28ce33.tar.xz wireguard-linux-c039dd275e88989478abe5f28e4e15648c28ce33.zip | |
spi: pxa2xx: Cleanup register access macros
Currently SSP registers are accessed by having an own read and write macros
for each register. For instance read_SSSR(iobase) and write_SSSR(iobase).
In my opinion this hurts readability and requires new macros to be defined
for each new added register. Let's define and use instead common
pxa2xx_spi_read() and pxa2xx_spi_write() accessors.
Signed-off-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'lib/mpi/mpi-cmp.c')
0 files changed, 0 insertions, 0 deletions
