Date: Fri, 30 May 2014 07:43:56 +0000 (UTC) From: Ruslan Bukin <br@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r266874 - head/sys/arm/samsung/exynos Message-ID: <201405300743.s4U7huQs008803@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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 <gelraen.ua@gmail.com> 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);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201405300743.s4U7huQs008803>