Commit 3c374d46 authored by Simon Glass's avatar Simon Glass Committed by David Gibson
Browse files

pylibfdt: Allow reading integer values from properties



Extend the Properties class with some functions to read a single integer
property. Add a new getprop_obj() function to return a Property object
instead of the raw data.

This suggested approach can be extended to handle other types, as well as
arrays.

Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 49d32ce4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment