Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752854Ab3GFUp6 (ORCPT ); Sat, 6 Jul 2013 16:45:58 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:60921 "EHLO mail-pb0-f45.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479Ab3GFUp4 (ORCPT ); Sat, 6 Jul 2013 16:45:56 -0400 Date: Sat, 6 Jul 2013 13:45:54 -0700 From: Guenter Roeck To: Jean Delvare Cc: Greg Kroah-Hartman , lm-sensors@lm-sensors.org, linux-kernel@vger.kernel.org Subject: Re: [RFC PATCH 3/5] hwmon: (ds1621) Convert to use hwmon_device_register_groups Message-ID: <20130706204554.GA25674@roeck-us.net> References: <1373131495-13465-1-git-send-email-linux@roeck-us.net> <1373131495-13465-4-git-send-email-linux@roeck-us.net> <20130706175747.GA8658@kroah.com> <20130706200151.70b7ac3d@endymion.delvare> <20130706191816.GA15066@roeck-us.net> <20130706193142.GA9778@kroah.com> <20130706215458.64753cd0@endymion.delvare> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20130706215458.64753cd0@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: 1383 Lines: 31 On Sat, Jul 06, 2013 at 09:54:58PM +0200, Jean Delvare wrote: > On Sat, 6 Jul 2013 12:31:42 -0700, Greg Kroah-Hartman wrote: > > On Sat, Jul 06, 2013 at 12:18:16PM -0700, Guenter Roeck wrote: > > > Yes, and I tested it with the new nct6775 driver to make sure that it works. > > > The i2c and spi drivers need some more work, though - the name attribute is > > > now missing and will have to be created for the hwmon device itself. If you have > > > an idea how to do that without adding it in every driver, please let me know. > > > > Why do you need a name attribute at all? Shouldn't that just be the > > name of the device, or the parent? > > libsensors expects the hwmon attributes and the name attribute at the > same place. > > > Can you make the name be part of the groups always? > > Sounds good, but then we have to make the hwmon core handles it. So far > each driver (or its bus type subsystem) was responsible for it. > A quick scan suggests this affects some 50+ drivers, which all implement the name attribute. On the downside a lot of work, on the upside there will be lots of removed code. > -- > Jean Delvare > -- 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/