diff options
author | Anton Vorontsov <avorontsov@ru.mvista.com> | 2008-12-05 08:15:46 +0000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2008-12-21 14:21:14 +1100 |
commit | 7736a3db98bed028d0e5235f8958a730acfd822e (patch) | |
tree | 27ab46e431b71294c24dbbf721bdbc581f977f14 /lib | |
parent | c1bb7c6d04ebdf48998649100c5267a9139debf5 (diff) |
of: of_parse_phandles_with_args() learns to differentiate 'hole' cells
Given this list (contains three gpio specifiers, one of which is a hole):
gpios = <&phandle1 1 2 3
0 /* a hole */
&phandle2 4 5 6>;
of_parse_phandles_with_args() would report -ENOENT for the `hole'
specifier item, the same error value is used to report the end of the
list, for example.
Sometimes we want to differentiate holes from real errors -- for
example when we want to count all the [syntax correct] specifiers.
With this patch of_parse_phandles_with_args() will report -EEXITS when
somebody requested to parse a hole.
Also, make the out_{node,args} arguments optional, when counting we
don't really need the out values.
Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'lib')
0 files changed, 0 insertions, 0 deletions