]> git.baikalelectronics.ru Git - kernel.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)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 3 May 2016 20:28:26 +0000 (22:28 +0200)
commit3543995a71b9150621bf30f4b45820d9cf65adb4
treee2b46eb6e91913220a0a61c8faba6c293649beb6
parent450174fe9cc6a1fbc357984f2436ca5fd9960c31
mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly

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

Cc: Shobhit Kumar <shobhit.kumar@intel.com>
Cc: Samuel Ortiz <sameo@linux.intel.com>
Cc: Linus Walleij <linus.walleij@linaro.org>
Cc: Alexandre Courbot <gnurou@gmail.com>
Cc: Thierry Reding <thierry.reding@gmail.com>
Cc: Lee Jones <lee.jones@linaro.org>
Cc: stable@vger.kernel.org
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>
Reviewed-by: Jani Nikula <jani.nikula@intel.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1461353935-8078-1-git-send-email-ville.syrjala@linux.intel.com
drivers/mfd/intel_soc_pmic_core.c