spi: sprd: Pass offset instead of physical address to adi_read/_write()
authorChunyan Zhang <chunyan.zhang@unisoc.com>
Tue, 24 Aug 2021 07:02:10 +0000 (15:02 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 24 Aug 2021 18:15:04 +0000 (19:15 +0100)
commit5dc349ec131c6d40aeb2545064e285f0025fbb39
treeac023cab6b8a093a8b91773116d060a49520fa2e
parent745649c59a0d1fde9dcc02286f23f8c78a1f724d
spi: sprd: Pass offset instead of physical address to adi_read/_write()

The register offset would be added a physical address base and then pass to
the function sprd_adt_read()/_write() each time before calling them. So we
can do that within these two functions instead, that would make the code
more clear.

Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20210824070212.2089255-1-zhang.lyra@gmail.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/spi/spi-sprd-adi.c