soc: mediatek: mmsys: Use an array for setting the routing registers
Actually, setting the registers for routing, use multiple 'if-else' for different routes, but this code would be more and more complicated while we support more and more SoCs. Change that and use a table per SoC so the code will be more portable and clear. Signed-off-by: NCK Hu <ck.hu@mediatek.com> Signed-off-by: NEnric Balletbo i Serra <enric.balletbo@collabora.com> Link: https://lore.kernel.org/r/20210317181711.795245-3-enric.balletbo@collabora.comSigned-off-by: NMatthias Brugger <matthias.bgg@gmail.com>
Showing
drivers/soc/mediatek/mtk-mmsys.h
0 → 100644
想要评论请 注册 或 登录