linux/drivers/of
Anton Vorontsov 7736a3db98 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>
2008-12-21 14:21:14 +11:00
..
base.c of: of_parse_phandles_with_args() learns to differentiate 'hole' cells 2008-12-21 14:21:14 +11:00
device.c OF-device: Don't overwrite numa_node in device registration 2008-10-31 16:12:01 +11:00
gpio.c of/gpio: Implement of_get_gpio_flags() 2008-12-03 21:04:05 +11:00
Kconfig spi: Add OF binding support for SPI busses 2008-07-25 22:34:40 -04:00
Makefile spi: Add OF binding support for SPI busses 2008-07-25 22:34:40 -04:00
of_i2c.c of/i2c: Fill the archdata for I2C devices 2008-12-03 21:03:56 +11:00
of_spi.c of/spi: Support specifying chip select as active high via device tree 2008-10-20 23:34:01 -05:00
platform.c [POWERPC] Create modalias file in sysfs for of_platform bus 2008-05-14 22:31:28 +10:00