]> git.baikalelectronics.ru Git - kernel.git/commit
platform-drivers-x86: intel_pmic_gpio: Fix off-by-one valid offset range check
authorAxel Lin <axel.lin@ingics.com>
Tue, 15 Apr 2014 02:54:11 +0000 (10:54 +0800)
committerMatthew Garrett <matthew.garrett@nebula.com>
Mon, 9 Jun 2014 21:39:58 +0000 (17:39 -0400)
commit816e80d834d40a0ebb888d166bc893eb81b5d786
tree9aba992cb4cb5fb2118c94e76bd89c653e3c6b73
parent8839b40f27a93a3557e0f1ad9bae7e905b681711
platform-drivers-x86: intel_pmic_gpio: Fix off-by-one valid offset range check

Only pin 0-7 support input, so the valid offset range should be 0 ~ 7.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/intel_pmic_gpio.c