Re: [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-11-22 Thread Greg Kroah-Hartman
On Fri, Nov 22, 2013 at 02:47:38PM -0800, Dmitry Torokhov wrote: > On Sat, Mar 16, 2013 at 09:21:40AM -0700, Greg Kroah-Hartman wrote: > > On Thu, Mar 14, 2013 at 08:24:45PM -0700, Guenter Roeck wrote: > > > Provide devres functions for device_create_file, sysfs_create_file, > > > and sysfs_create_

Re: [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-11-22 Thread Dmitry Torokhov
On Sat, Mar 16, 2013 at 09:21:40AM -0700, Greg Kroah-Hartman wrote: > On Thu, Mar 14, 2013 at 08:24:45PM -0700, Guenter Roeck wrote: > > Provide devres functions for device_create_file, sysfs_create_file, > > and sysfs_create_group plus the respective remove functions. > > > > Idea is to be able t

Re: [lm-sensors] [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-18 Thread Guenter Roeck
On Mon, Mar 18, 2013 at 09:02:41AM +0100, Jean Delvare wrote: > On Sun, 17 Mar 2013 06:19:33 -0700, Guenter Roeck wrote: > > On Sun, Mar 17, 2013 at 01:39:20PM +0100, Jean Delvare wrote: > > > I'd like to add something at this point. > > > > > > We have historically created the hwmon attributes in

Re: [lm-sensors] [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-18 Thread Jean Delvare
On Sun, 17 Mar 2013 06:19:33 -0700, Guenter Roeck wrote: > On Sun, Mar 17, 2013 at 01:39:20PM +0100, Jean Delvare wrote: > > I'd like to add something at this point. > > > > We have historically created the hwmon attributes in the hardware (i2c, > > platform...) device, and then created an empty h

Re: [lm-sensors] [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-17 Thread Guenter Roeck
On Sun, Mar 17, 2013 at 06:19:33AM -0700, Guenter Roeck wrote: > On Sun, Mar 17, 2013 at 01:39:20PM +0100, Jean Delvare wrote: > > On Sat, 16 Mar 2013 14:25:40 -0700, Guenter Roeck wrote: > > > On Sat, Mar 16, 2013 at 12:50:02PM -0700, Greg Kroah-Hartman wrote: > > > > On Sat, Mar 16, 2013 at 11:12

Re: [lm-sensors] [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-17 Thread Guenter Roeck
On Sun, Mar 17, 2013 at 01:39:20PM +0100, Jean Delvare wrote: > On Sat, 16 Mar 2013 14:25:40 -0700, Guenter Roeck wrote: > > On Sat, Mar 16, 2013 at 12:50:02PM -0700, Greg Kroah-Hartman wrote: > > > On Sat, Mar 16, 2013 at 11:12:53AM -0700, Guenter Roeck wrote: > > > > My use case is primarily for

Re: [lm-sensors] [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-17 Thread Jean Delvare
On Sat, 16 Mar 2013 14:25:40 -0700, Guenter Roeck wrote: > On Sat, Mar 16, 2013 at 12:50:02PM -0700, Greg Kroah-Hartman wrote: > > On Sat, Mar 16, 2013 at 11:12:53AM -0700, Guenter Roeck wrote: > > > My use case is primarily for hwmon drivers. > > > > > > hwmon has a separate API call to register

Re: [lm-sensors] [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-16 Thread Guenter Roeck
On Sat, Mar 16, 2013 at 02:25:40PM -0700, Guenter Roeck wrote: > On Sat, Mar 16, 2013 at 12:50:02PM -0700, Greg Kroah-Hartman wrote: > > On Sat, Mar 16, 2013 at 11:12:53AM -0700, Guenter Roeck wrote: > > > Adding lm-sensors. > > > > > > On Sat, Mar 16, 2013 at 09:21:40AM -0700, Greg Kroah-Hartman

Re: [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-16 Thread Guenter Roeck
On Sat, Mar 16, 2013 at 12:50:02PM -0700, Greg Kroah-Hartman wrote: > On Sat, Mar 16, 2013 at 11:12:53AM -0700, Guenter Roeck wrote: > > Adding lm-sensors. > > > > On Sat, Mar 16, 2013 at 09:21:40AM -0700, Greg Kroah-Hartman wrote: > > > On Thu, Mar 14, 2013 at 08:24:45PM -0700, Guenter Roeck wrot

Re: [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-16 Thread Greg Kroah-Hartman
On Sat, Mar 16, 2013 at 11:12:53AM -0700, Guenter Roeck wrote: > Adding lm-sensors. > > On Sat, Mar 16, 2013 at 09:21:40AM -0700, Greg Kroah-Hartman wrote: > > On Thu, Mar 14, 2013 at 08:24:45PM -0700, Guenter Roeck wrote: > > > Provide devres functions for device_create_file, sysfs_create_file, >

Re: [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-16 Thread Guenter Roeck
Adding lm-sensors. On Sat, Mar 16, 2013 at 09:21:40AM -0700, Greg Kroah-Hartman wrote: > On Thu, Mar 14, 2013 at 08:24:45PM -0700, Guenter Roeck wrote: > > Provide devres functions for device_create_file, sysfs_create_file, > > and sysfs_create_group plus the respective remove functions. > > > >

Re: [RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-16 Thread Greg Kroah-Hartman
On Thu, Mar 14, 2013 at 08:24:45PM -0700, Guenter Roeck wrote: > Provide devres functions for device_create_file, sysfs_create_file, > and sysfs_create_group plus the respective remove functions. > > Idea is to be able to drop calls to the remove functions from the various > drivers using those ca

[RFC PATCH 0/2] fs: sysfs: Add devres support

2013-03-14 Thread Guenter Roeck
Provide devres functions for device_create_file, sysfs_create_file, and sysfs_create_group plus the respective remove functions. Idea is to be able to drop calls to the remove functions from the various drivers using those calls. Potential savings are substantial. There are more than 700 calls to