[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20130925230244.GA4740@kroah.com>
Date: Wed, 25 Sep 2013 16:02:44 -0700
From: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
To: Guenter Roeck <linux@...ck-us.net>
Cc: devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Bill Pemberton <wfp5p@...ginia.edu>
Subject: Re: [PATCH] staging: dgrp: Convert to use device_create_with_groups
On Sat, Aug 31, 2013 at 03:56:06PM -0700, Guenter Roeck wrote:
> Use device_create_with_groups to create sysfs attributes together with device.
> Also create class attribute together with class registration.
> This simplifies the code and ensures that attribute files exist when udev
> events are generated.
>
> Signed-off-by: Guenter Roeck <linux@...ck-us.net>
> ---
> I suspect that the 'register_with_sysfs' attribute exists to work around
> the problem solved with this patch. It doesn't make much sense otherwise.
> Can it be removed ?
All of these sysfs files can be removed, they shouldn't be there, as it
looks like they are used for odd configuration things.
And a single tty driver shouldn't be a "class" at all.
sorry,
greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists