Re: [PATCH 1/3] USB: serial: use static attribute groups for sysfs entries

2015-02-15 Thread Takashi Iwai
At Sun, 15 Feb 2015 14:25:05 +0700, Johan Hovold wrote: > > On Thu, Feb 05, 2015 at 02:36:23PM +0100, Takashi Iwai wrote: > > > static int usb_serial_device_probe(struct device *dev) > > { > > struct usb_serial_driver *driver; > > @@ -72,15 +79,9 @@ static int usb_serial_device_probe(struct

Re: [PATCH 1/3] USB: serial: use static attribute groups for sysfs entries

2015-02-14 Thread Johan Hovold
On Thu, Feb 05, 2015 at 02:36:23PM +0100, Takashi Iwai wrote: > static int usb_serial_device_probe(struct device *dev) > { > struct usb_serial_driver *driver; > @@ -72,15 +79,9 @@ static int usb_serial_device_probe(struct device *dev) > goto exit_with_autopm; >

[PATCH 1/3] USB: serial: use static attribute groups for sysfs entries

2015-02-05 Thread Takashi Iwai
Instead of manual device_create_file() and device_remove_file() calls, pass the static attribute groups to tty_register_device_attr(). Signed-off-by: Takashi Iwai --- drivers/usb/serial/bus.c | 19 +-- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/drivers/usb/ser