Re: [PATCH] spi: Initialize cs_gpio and cs_gpios with -ENOENT

2013-03-03 Thread Grant Likely
On Wed, 13 Feb 2013 14:20:25 +0100, Andreas Larsson wrote: > The return value from of_get_named_gpio is -ENOENT when the given index > matches a hole in the "cs-gpios" property phandle list. However, the > default value of cs_gpio in struct spi_device and entries of cs_gpios in > struct spi_master

[PATCH] spi: Initialize cs_gpio and cs_gpios with -ENOENT

2013-02-13 Thread Andreas Larsson
The return value from of_get_named_gpio is -ENOENT when the given index matches a hole in the "cs-gpios" property phandle list. However, the default value of cs_gpio in struct spi_device and entries of cs_gpios in struct spi_master is -EINVAL, which is documented to indicate that a GPIO line should