Skip to content
Unverified Commit 5dc349ec authored by Chunyan Zhang's avatar Chunyan Zhang Committed by Mark Brown
Browse files

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: default avatarChunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lore.kernel.org/r/20210824070212.2089255-1-zhang.lyra@gmail.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 745649c5
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment