[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date: Sat, 02 Mar 2013 22:46:47 +0000
From: Grant Likely <grant.likely@...retlab.ca>
To: Andreas Larsson <andreas@...sler.com>
Cc: spi-devel-general@...ts.sourceforge.net,
devicetree-discuss@...ts.ozlabs.org, linux-kernel@...r.kernel.org,
software@...sler.com
Subject: Re: [PATCH] spi: Initialize cs_gpio and cs_gpios with -ENOENT
On Wed, 13 Feb 2013 14:20:25 +0100, Andreas Larsson <andreas@...sler.com> 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 is -EINVAL, which is documented to indicate that a
> GPIO line should not be used for the given spi_device.
>
> This sets the default value of cs_gpio in struct spi_device and entries
> of cs_gpios in struct spi_master to -ENOENT. Thus, -ENOENT is the only
> value used to indicate that no GPIO line should be used.
>
> Signed-off-by: Andreas Larsson <andreas@...sler.com>
Applied, thanks.
g.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists