1 Oct
2009
1 Oct
'09
8:13 a.m.
On Thursday 01 October 2009 08:41:07 Ujfalusi Peter (Nokia-D/Tampere) wrote:
Is it good if the patch creates a directory hierarchy like this: debugfs/asoc/{dev_name()}/{codec->name}/...
Or should I use some intermediate buffer to construct a single level tree: debugfs/asoc/{dev_name()}-{codec->name}/...
From the point of what is coming the former is much more future proof, if we take into account that we can have more than one codec in one soc device (or card).
After a bit of thinking, I think I will go with the later one: debugfs/asoc/{dev_name()}-{codec->name}/...
It needs some intermediate buffer to construct the string for the directory, but I think that is the better way for now.
--
Péter