I am developing kernel 3.18 for Meizu M6 Note, vendor hasn't provided kernel source, so I brought kernel from most similar device and replacing it dts with stock's one.
I want to know, how can I convert this (just example):
mysuperoption { ... phandle = <0x1>;}mysuperphandleuse { ... pinctrl-0 = <0x1>; /* LINK TO MYSUPEROPTION */ ...}
To this:
mso: mysuperoption { ...}mysuperlinkuse { ... pinctrl-0 = <&mso>; /* LINK TO MYSUPEROPTION */}
Why do I want to use links? They're more easy to edit in future and won't cause phandle conflict.
Why do I want to convert it automatically? File length is 12k lines with very many phandles.