Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-07-19 Thread Greg Kroah-Hartman
On Tue, Jul 18, 2017 at 01:26:06PM -0700, Dmitry Torokhov wrote: > On Tue, Jul 18, 2017 at 10:03:36PM +0200, Greg Kroah-Hartman wrote: > > On Tue, Jul 18, 2017 at 12:30:58PM -0700, Dmitry Torokhov wrote: > > > --- a/include/linux/sysfs.h > > > +++ b/include/linux/sysfs.h > > > @@ -282,6 +282,16 @@

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-07-18 Thread Dmitry Torokhov
On Tue, Jul 18, 2017 at 10:03:36PM +0200, Greg Kroah-Hartman wrote: > On Tue, Jul 18, 2017 at 12:30:58PM -0700, Dmitry Torokhov wrote: > > --- a/include/linux/sysfs.h > > +++ b/include/linux/sysfs.h > > @@ -282,6 +282,16 @@ int __compat_only_sysfs_link_entry_to_kobj(struct > > kobject *kobj, > >

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-07-18 Thread Greg Kroah-Hartman
On Tue, Jul 18, 2017 at 12:30:58PM -0700, Dmitry Torokhov wrote: > --- a/include/linux/sysfs.h > +++ b/include/linux/sysfs.h > @@ -282,6 +282,16 @@ int __compat_only_sysfs_link_entry_to_kobj(struct > kobject *kobj, > struct kobject *target_kobj, >

[PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-07-18 Thread Dmitry Torokhov
Many drivers create additional driver-specific device attributes when binding to the device and providing managed version of sysfs_create_group() will simplify unbinding and error handling in probe path for such drivers. Without managed version driver writers either have to mix manual and managed

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-06-17 Thread Greg Kroah-Hartman
On Wed, Jun 07, 2017 at 10:04:45AM -0700, Dmitry Torokhov wrote: > On Mon, Mar 27, 2017 at 09:35:45PM +0200, Greg Kroah-Hartman wrote: > > On Mon, Mar 27, 2017 at 10:53:59AM -0700, Dmitry Torokhov wrote: > > > On Sun, Feb 12, 2017 at 04:36:19PM -0800, Dmitry Torokhov wrote: > > > > Many drivers cre

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-06-07 Thread Dmitry Torokhov
On Mon, Mar 27, 2017 at 09:35:45PM +0200, Greg Kroah-Hartman wrote: > On Mon, Mar 27, 2017 at 10:53:59AM -0700, Dmitry Torokhov wrote: > > On Sun, Feb 12, 2017 at 04:36:19PM -0800, Dmitry Torokhov wrote: > > > Many drivers create additional driver-specific device attributes when > > > binding to th

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-03-27 Thread Greg Kroah-Hartman
On Mon, Mar 27, 2017 at 10:53:59AM -0700, Dmitry Torokhov wrote: > On Sun, Feb 12, 2017 at 04:36:19PM -0800, Dmitry Torokhov wrote: > > Many drivers create additional driver-specific device attributes when > > binding to the device and providing managed version of sysfs_create_group() > > will simp

Re: [PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-03-27 Thread Dmitry Torokhov
On Sun, Feb 12, 2017 at 04:36:19PM -0800, Dmitry Torokhov wrote: > Many drivers create additional driver-specific device attributes when > binding to the device and providing managed version of sysfs_create_group() > will simplify unbinding and error handling in probe path for such drivers. > > Wi

[PATCH 2/2] sysfs: add devm_sysfs_create_group() and friends

2017-02-12 Thread Dmitry Torokhov
Many drivers create additional driver-specific device attributes when binding to the device and providing managed version of sysfs_create_group() will simplify unbinding and error handling in probe path for such drivers. Without managed version driver writers either have to mix manual and managed