From: Tom Rix Date: Fri, 29 May 2009 09:58:30 -0500 Subject: [U-Boot] [PATCH 1/3] Fix a typo in the instructions on using omap3's gpio interface. In-Reply-To: <1243609112-11777-1-git-send-email-Tom.Rix@windriver.com> References: <1243609112-11777-1-git-send-email-Tom.Rix@windriver.com> Message-ID: <1243609112-11777-2-git-send-email-Tom.Rix@windriver.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Using the example for reading a gpio, shows the problem. NULL should be the gpio number. Signed-off-by: Tom Rix --- doc/README.omap3 | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/doc/README.omap3 b/doc/README.omap3 index e05e816..66e781d 100644 --- a/doc/README.omap3 +++ b/doc/README.omap3 @@ -106,7 +106,7 @@ To clear a bit : To read a bit : if (!omap_request_gpio(N)) { - omap_set_gpio_direction(NULL, 1); + omap_set_gpio_direction(N, 1); val = omap_get_gpio_datain(N); omap_free_gpio(N); } -- 1.6.0.5