lkml.org 
[lkml]   [2012]   [Apr]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] drivers/leds/leds-lp5523.c: add attribute list NULL terminator
Date
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


\
 
 \ /
  Last update: 2012-04-12 23:51    [W:0.092 / U:0.392 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site