20 Apr
2021
20 Apr
'21
12:15 a.m.
Hi Thierry, Mark
The data structure seems to be only used during initialization, so something like a kzalloc()/kfree() pair doesn't seem like it would hurt much performance-wise. Add in the devm_ variants and the code complexity should also remain moderately low.
Yes, that'd be much better - ideally we wouldn't have a fixed limit of any kind but that's a more involved change and quite possibly more trouble than it's worth.
Using "fixed array style" was very easy for me (*^o^*).
OK, let's use kzalloc()/kfree() style. I can try it.
Thank you for your help !!
Best regards --- Kuninori Morimoto