]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
of: base: use of_property_read_u32()
authorSergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Sun, 23 Jul 2017 16:55:47 +0000 (19:55 +0300)
committerRob Herring <robh@kernel.org>
Mon, 24 Jul 2017 14:50:07 +0000 (09:50 -0500)
commit8832963d89f09e4cef6c1ec62f0082a545baf69d
tree7a9031d163fa5b854339b055d304b4d020796c59
parentfda9f5d4a97cedba3174641263a49d82ff3c3469
of: base: use of_property_read_u32()

of_n_{addr|size}_cells() predate of_property_read_u32(), so they have to
basically open-code it. Using the modern DT API saves several LoCs and also
adds some prop sanity checks as a bonus...

Signed-off-by: Sergei Shtylyov <sergei.shtylyov@cogentembedded.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/base.c