Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752806Ab3GFUAI (ORCPT ); Sat, 6 Jul 2013 16:00:08 -0400 Received: from zoneX.GCU-Squad.org ([194.213.125.0]:1578 "EHLO services.gcu-squad.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508Ab3GFUAF (ORCPT ); Sat, 6 Jul 2013 16:00:05 -0400 Date: Sat, 6 Jul 2013 21:59:57 +0200 From: Jean Delvare To: Guenter Roeck 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: <20130706215957.70ae1fdc@endymion.delvare> In-Reply-To: <20130706194803.GA15473@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> <20130706194803.GA15473@roeck-us.net> X-Mailer: Claws Mail 3.9.0 (GTK+ 2.24.18; x86_64-suse-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 936 Lines: 19 On Sat, 6 Jul 2013 12:48:03 -0700, Guenter Roeck wrote: > Another option would be to create a class attribute to return the parent driver > name for spi and i2c devices and otherwise the hwmon driver name. This would > reduce the amount of code needed in the drivers. Jean, do you see a problem with > that approach (except that we would have to remove explicit name attributes from > existing drivers) ? A class attribute is what I had in mind in my previous reply. However I do not understand the "hwmon driver name" in your sentence above. Device name != driver name. But well I'm sure I'll understand what you mean as soon as you show us a candidate implementation ;) -- 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/