From owner-svn-src-head@FreeBSD.ORG Fri May 30 07:43:56 2014 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 7FEE08CB; Fri, 30 May 2014 07:43:56 +0000 (UTC) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 6D2A72A05; Fri, 30 May 2014 07:43:56 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.8/8.14.8) with ESMTP id s4U7hugO008804; Fri, 30 May 2014 07:43:56 GMT (envelope-from br@svn.freebsd.org) Received: (from br@localhost) by svn.freebsd.org (8.14.8/8.14.8/Submit) id s4U7huQs008803; Fri, 30 May 2014 07:43:56 GMT (envelope-from br@svn.freebsd.org) Message-Id: <201405300743.s4U7huQs008803@svn.freebsd.org> From: Ruslan Bukin Date: Fri, 30 May 2014 07:43:56 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266874 - head/sys/arm/samsung/exynos X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 30 May 2014 07:43:56 -0000 Author: br Date: Fri May 30 07:43:55 2014 New Revision: 266874 URL: http://svnweb.freebsd.org/changeset/base/266874 Log: Fix off-by-one error that makes 0-th pins of each bank unreachable. Submitted by: Maxim Ignatenko Modified: head/sys/arm/samsung/exynos/exynos5_pad.c Modified: head/sys/arm/samsung/exynos/exynos5_pad.c ============================================================================== --- head/sys/arm/samsung/exynos/exynos5_pad.c Fri May 30 07:30:24 2014 (r266873) +++ head/sys/arm/samsung/exynos/exynos5_pad.c Fri May 30 07:43:55 2014 (r266874) @@ -223,7 +223,7 @@ get_bank(int gpio_number, struct gpio_ba for (i = 0; i < NGRP; i++) { ngpio = gpio_map[i].ngpio; - if ((n + ngpio) >= gpio_number) { + if ((n + ngpio) > gpio_number) { *bank = gpio_map[i]; *pin_shift = (gpio_number - n); return (0);