Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757992Ab3CNNdB (ORCPT ); Thu, 14 Mar 2013 09:33:01 -0400 Received: from mail.active-venture.com ([67.228.131.205]:50433 "EHLO mail.active-venture.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757905Ab3CNNdA (ORCPT ); Thu, 14 Mar 2013 09:33:00 -0400 X-Originating-IP: 108.223.40.66 Date: Thu, 14 Mar 2013 06:33:04 -0700 From: Guenter Roeck To: Jean Delvare Cc: Axel Lin , lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwmon: lineage-pem: Add missing terminating entry for pem_[input|fan]_attributes Message-ID: <20130314133304.GA24678@roeck-us.net> References: <1363249638.15861.1.camel@phoenix> <20130314112354.31396c51@endymion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130314112354.31396c51@endymion.delvare> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1600 Lines: 47 On Thu, Mar 14, 2013 at 11:23:54AM +0100, Jean Delvare wrote: > Hi Axel, > > On Thu, 14 Mar 2013 16:27:18 +0800, Axel Lin wrote: > > Signed-off-by: Axel Lin > > --- > > drivers/hwmon/lineage-pem.c | 2 ++ > > 1 file changed, 2 insertions(+) > > > > diff --git a/drivers/hwmon/lineage-pem.c b/drivers/hwmon/lineage-pem.c > > index 41df29f..ebbb9f4 100644 > > --- a/drivers/hwmon/lineage-pem.c > > +++ b/drivers/hwmon/lineage-pem.c > > @@ -422,6 +422,7 @@ static struct attribute *pem_input_attributes[] = { > > &sensor_dev_attr_in2_input.dev_attr.attr, > > &sensor_dev_attr_curr1_input.dev_attr.attr, > > &sensor_dev_attr_power1_input.dev_attr.attr, > > + NULL > > }; > > > > static const struct attribute_group pem_input_group = { > > @@ -432,6 +433,7 @@ static struct attribute *pem_fan_attributes[] = { > > &sensor_dev_attr_fan1_input.dev_attr.attr, > > &sensor_dev_attr_fan2_input.dev_attr.attr, > > &sensor_dev_attr_fan3_input.dev_attr.attr, > > + NULL > > }; > > > > static const struct attribute_group pem_fan_group = { > > Good catch. > > Acked-by: Jean Delvare > > I'll let Guenter pick the fix as this is his driver. This should go to > stable too. > Will do. Just wonder why this never blew up in my face, as we use that driver in my previous company :). Thanks, Guenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/