how to parse list
by DeanAnderson from LinuxQuestions.org on (#50KGP)
Hi
Anyone knows functions API for parse this one from device tree?:
Code:some-list-bits = <"name1", 0>, <"name2", 1>, <"name3", 2>;Seems like either there is lack of API or again not documented.
Here is some example solution but it is only valid if all types in cells has known size:
https://stackoverflow.com/questions/...-list-of-cells
If You have string in cell You cannot declare universal cell size in your driver.


Anyone knows functions API for parse this one from device tree?:
Code:some-list-bits = <"name1", 0>, <"name2", 1>, <"name3", 2>;Seems like either there is lack of API or again not documented.
Here is some example solution but it is only valid if all types in cells has known size:
https://stackoverflow.com/questions/...-list-of-cells
If You have string in cell You cannot declare universal cell size in your driver.