27 May
2021
27 May
'21
12:06 a.m.
Hi Geert
Oh right, I missed the static clk_hw pointer. What if you unload the snd-soc-rcar.ko module?
Hmm.. indeed. It needs something.. Thank you for poining it.
#define for_each_rsnd_clk(pos, adg, i) \ for (i = 0; (pos) = adg->clk[i], i < CLKMAX; i++) \ if (pos) { \ continue; \ } else
Wow!! I didn't know this technique. Indeed it can use NULL pointer.
But, I want to avoid "if (pos) else" code as much as possible, and keep simple code. It can handle all clk case without thinking it if it has null_clk.
Why you don't want null_clk ??
Thank you for your help !!
Best regards --- Kuninori Morimoto