Hi Mark again
Yes, what I was asking was if that code is reimplementing things that are already provided in generic code.
Thank you. But, is regmap (or already provided code) possible to use for this purpose ? I can learn more about it. Could you please teach me sample code ?
Look at the st pinctrl driver - it's the only user of the field API at the minute.
Thank you for pointing it.
Can you allow me to replace it in next (?) kernel version, or should I do it on v2 patch ? (using regmap needs big exchange...)
This regmap-field (or regmap) seems can't help directly for this purpose in my quick check... Of course it can use regmap, but then, a more complicated mechanism is needed in my feeling... I'm not 100% understanding though.
Best regards --- Kuninori Morimoto