Quantcast
Channel: Active questions tagged kernel - Stack Overflow
Viewing all articles
Browse latest Browse all 6393

How to convert phandles to links in kernel devicetree automatically?

$
0
0

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.


Viewing all articles
Browse latest Browse all 6393

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>