linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] drivers/leds/leds-lp5523.c: add attribute list NULL terminator
@ 2012-04-12 21:43 mjr
  0 siblings, 0 replies; only message in thread
From: mjr @ 2012-04-12 21:43 UTC (permalink / raw)
  To: linux-kernel; +Cc: rpurdie, Matt Renzelmann

From: Matt Renzelmann <mjr@cs.wisc.edu>

Our driver testing tool found that the lp5523_attributes array is
missing a null-terminator.  All other attribute arrays need one.  This
patch adds it.

Signed-off-by: Matt Renzelmann <mjr@cs.wisc.edu>
---
 drivers/leds/leds-lp5523.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/leds/leds-lp5523.c b/drivers/leds/leds-lp5523.c
index 857a3e1..397091f 100644
--- a/drivers/leds/leds-lp5523.c
+++ b/drivers/leds/leds-lp5523.c
@@ -755,6 +755,7 @@ static struct attribute *lp5523_attributes[] = {
 	&dev_attr_engine2_leds.attr,
 	&dev_attr_engine3_load.attr,
 	&dev_attr_engine3_leds.attr,
+	NULL
 };
 
 static const struct attribute_group lp5523_group = {
-- 
1.7.5.4


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-04-12 21:48 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-04-12 21:43 [PATCH] drivers/leds/leds-lp5523.c: add attribute list NULL terminator mjr

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).