]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Fri, 22 Apr 2016 19:38:55 +0000 (22:38 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 8 Jun 2016 01:14:34 +0000 (18:14 -0700)
commit4072a4bcd24f2b07eb1b6dfc2a2e7fac4c501114
tree2d05c86862eb31b24d3c4ecc025dd196c7cc9d8b
parentd306f756f8c63ea820af01ecf27e089f3118a00a
mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly

commit 36e6d081cfb2cb64e6d8e5121cffb1e62f894d36 upstream.

GPIO lookup tables are supposed to be zero terminated. Let's do that
and avoid accidentally walking off the end.

Fixes: 61dd2ca2d44e ("mfd: intel_soc_pmic_core: Add lookup table for Panel Control as GPIO signal")
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Daniel Vetter <daniel@ffwll.ch>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/mfd/intel_soc_pmic_core.c