From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga02.intel.com ([134.134.136.20]:35866 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753828AbcDYHl1 convert rfc822-to-8bit (ORCPT ); Mon, 25 Apr 2016 03:41:27 -0400 From: Jani Nikula To: ville.syrjala@linux.intel.com, linux-gpio@vger.kernel.org Cc: Alexandre Courbot , Samuel Ortiz , Shobhit Kumar , intel-gfx@lists.freedesktop.org, stable@vger.kernel.org, Thierry Reding , Lee Jones , Linus Walleij Subject: Re: [Intel-gfx] [PATCH] mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly In-Reply-To: <1461353935-8078-1-git-send-email-ville.syrjala@linux.intel.com> References: <1461353935-8078-1-git-send-email-ville.syrjala@linux.intel.com> Date: Mon, 25 Apr 2016 10:40:57 +0300 Message-ID: <8737qam8za.fsf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8BIT Sender: stable-owner@vger.kernel.org List-ID: On Fri, 22 Apr 2016, ville.syrjala@linux.intel.com wrote: > From: Ville Syrjälä > > 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 > --- > drivers/mfd/intel_soc_pmic_core.c | 1 + > 1 file changed, 1 insertion(+) > > 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), > + { }, > }, > }; -- Jani Nikula, Intel Open Source Technology Center