dma40: use helper for channel registers base
The register offset computation for accessing channel registers is copy/pasted in several places. Create a helper function to do it. Acked-by: NPer Forlin <per.forlin@stericsson.com> Acked-by: NJonas Aaberg <jonas.aberg@stericsson.com> Signed-off-by: NRabin Vincent <rabin.vincent@stericsson.com> Signed-off-by: NLinus Walleij <linus.walleij@stericsson.com> Signed-off-by: NDan Williams <dan.j.williams@intel.com>
Showing
想要评论请 注册 或 登录