aboutsummaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorMichal Orzel2022-09-07 13:08:51 +0200
committerStefano Stabellini2022-09-07 16:36:33 -0700
commit22075f787417662d5f5c74af3fb85aea61dbb86a (patch)
treec79731dbd3d0f25c4467dccc311f39031c82eee6 /CONTRIBUTING.md
parent648a85038f7673d028cd9d345db9192d1cb62915 (diff)
scripts/common: Introduce phandle_next and get_next_phandle()
When dealing with device trees, we need to have a solution to add custom phandles to the nodes we create/modify. Add a global variable phandle_next to act as a countdown counter starting with the highest valid phandle value 0xfffffffe. Add a new function get_next_phandle to get a value of the next available phandle and set it to a variable whose name is passed as a first argument. The global counter will be decremented with each call to this function. Signed-off-by: Michal Orzel <michal.orzel@amd.com> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Stefano Stabellini <stefano.stabellini@amd.com>
Diffstat (limited to 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions