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)
commit21a3542753a63091bc4700525e6096d76fe32f62
tree9aba992cb4cb5fb2118c94e76bd89c653e3c6b73
parent963649d735c8b6eb0f97e82c54f02426ff3f1f45
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