From: Ville Syrjälä Date: Fri, 22 Apr 2016 19:38:55 +0000 (+0300) Subject: mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly X-Git-Tag: MMI-PSA29.97-13-9~7427^2~45^2~118 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3543995a71b9150621bf30f4b45820d9cf65adb4;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 Cc: Samuel Ortiz Cc: Linus Walleij Cc: Alexandre Courbot Cc: Thierry Reding Cc: Lee Jones 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ä Reviewed-by: Jani Nikula Reviewed-by: Thierry Reding Acked-by: Linus Walleij Signed-off-by: Daniel Vetter Link: http://patchwork.freedesktop.org/patch/msgid/1461353935-8078-1-git-send-email-ville.syrjala@linux.intel.com --- diff --git a/drivers/mfd/intel_soc_pmic_core.c b/drivers/mfd/intel_soc_pmic_core.c index d9e15cf7c6c8..12d6ebb4ae5d 100644 --- a/drivers/mfd/intel_soc_pmic_core.c +++ b/drivers/mfd/intel_soc_pmic_core.c @@ -35,6 +35,7 @@ static struct gpiod_lookup_table panel_gpio_table = { .table = { /* Panel EN/DISABLE */ GPIO_LOOKUP("gpio_crystalcove", 94, "panel", GPIO_ACTIVE_HIGH), + { }, }, };