]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite580f674212c602673bcd6d7034a5452ada5648e
treeac023cab6b8a093a8b91773116d060a49520fa2e
parent00667d05f26a89730a19a37e7d70680bc1a4fda3
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