diff options
author | Florian Fainelli <f.fainelli@gmail.com> | 2019-04-03 10:56:33 -0700 |
---|---|---|
committer | Rob Herring <robh@kernel.org> | 2019-04-10 16:33:48 -0500 |
commit | af3be70a32113787da9f15e4ce8a357ae6caa293 (patch) | |
tree | aea9bef4c73b39fa7d7235c2437a01f6ed824bbf /drivers/of/of_private.h | |
parent | 12eeae7147af32f7d3bbf0f1753313f88b8ce97b (diff) | |
download | linux-af3be70a32113787da9f15e4ce8a357ae6caa293.tar.bz2 |
of: Improve of_phandle_iterator_next() error message
Understanding why of_phandle_iterator_next() returns an error can
sometimes be hard to decipher based solely on the error message, a
typical error example is that #foo-cells = <X> and the phandle property
used has a smaller number of cells specified, e.g.:
#thermal-sensor-cells = <1>;
phandle = <&scmi_sensor>
instead of:
phandle <&scmi_sensor 0>;
Instead, make it clear what the expectations are towards debugging
incorrect Device Tree faster:
OF: /thermal-zones/scmi-thermal: #thermal-sensor-cells = 1, found 0 instead
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Rob Herring <robh@kernel.org>
Diffstat (limited to 'drivers/of/of_private.h')
0 files changed, 0 insertions, 0 deletions