All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly
@ 2016-04-22 19:38 ` ville.syrjala
  0 siblings, 0 replies; 19+ messages in thread
From: ville.syrjala @ 2016-04-22 19:38 UTC (permalink / raw)
  To: linux-gpio
  Cc: intel-gfx, Shobhit Kumar, Samuel Ortiz, Linus Walleij,
	Alexandre Courbot, Thierry Reding, Lee Jones, stable

From: Ville Syrjälä <ville.syrjala@linux.intel.com>

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>
---
 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),
+		{ },
 	},
 };
 
-- 
2.7.4

--
To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 19+ messages in thread

end of thread, other threads:[~2016-05-09  7:18 UTC | newest]

Thread overview: 19+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-04-22 19:38 [PATCH] mfd: intel_soc_pmic_core: Terminate panel control GPIO lookup table correctly ville.syrjala
2016-04-22 19:38 ` ville.syrjala
2016-04-24 10:53 ` ✗ Fi.CI.BAT: failure for " Patchwork
2016-05-02  8:18   ` Daniel Vetter
2016-04-25  7:40 ` [PATCH] " Jani Nikula
2016-04-25  7:40   ` [Intel-gfx] " Jani Nikula
2016-04-25 10:06 ` Thierry Reding
2016-04-29  9:31 ` Linus Walleij
2016-04-29  9:31   ` Linus Walleij
2016-05-02  8:19   ` Daniel Vetter
2016-05-02  8:19     ` [Intel-gfx] " Daniel Vetter
2016-05-04  7:32     ` Lee Jones
2016-05-04  7:32       ` [Intel-gfx] " Lee Jones
2016-05-09  6:57       ` Daniel Vetter
2016-05-09  6:57         ` [Intel-gfx] " Daniel Vetter
2016-05-09  7:17         ` Lee Jones
2016-05-09  7:17           ` Lee Jones
2016-05-09  7:18 ` Lee Jones
2016-05-09  7:18   ` Lee Jones

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.