dm: core: refactor functions reading an u32 from dt
authorDario Binacchi <dariobin@libero.it>
Sun, 29 Mar 2020 16:04:42 +0000 (18:04 +0200)
committerSimon Glass <sjg@chromium.org>
Thu, 16 Apr 2020 14:07:58 +0000 (08:07 -0600)
commit59006608d65b242b19176f1a1fdeeb99391654d2
treea1ee79c9c96125e0589a60651fe5298d86161f75
parent4bb7075c830c6f4e4512fe0277ff1f08c5a9e084
dm: core: refactor functions reading an u32 from dt

Now reading a 32 bit value from a device-tree property can be expressed
as reading the first element of an array with a single value.

Signed-off-by: Dario Binacchi <dariobin@libero.it>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/core/of_access.c
drivers/core/ofnode.c