Re: [linux-usb-devel] PATCH: export inteface and configuration strings to sysfs

2004-09-07 Thread Alex Kanavin
On Tue, 7 Sep 2004, Alan Stern wrote: > In both places the code needs to do something like this: > > struct usb_host_config *actconfig = udev->actconfig; > > if (!actconfig) > return 0; > len = usb_string(udev, actconfig->desc.field,... > > Otherwise we run the r

Re: [linux-usb-devel] PATCH: export inteface and configuration strings to sysfs

2004-09-07 Thread Alan Stern
On Fri, 3 Sep 2004, Alex Kanavin wrote: > On Fri, 3 Sep 2004, Oliver Neukum wrote: > > > + udev = to_usb_device (dev); \ > > + if (!udev->actconfig) \ > > + return 0;

Re: [linux-usb-devel] PATCH: export inteface and configuration strings to sysfs

2004-09-03 Thread Alex Kanavin
On Fri, 3 Sep 2004, Oliver Neukum wrote: > + udev = to_usb_device (dev); \ > + if (!udev->actconfig) \ > + return 0; \ > + len = usb_string(ud

Re: [linux-usb-devel] PATCH: export inteface and configuration strings to sysfs

2004-09-02 Thread Oliver Neukum
> write one. This would allow userspace to do really nifty things, for > example accessing the phone filesystem, and exchanging contacts and Cool stuff. + udev = to_usb_device (dev); \ + if (!udev->actconfig)

[linux-usb-devel] PATCH: export inteface and configuration strings to sysfs

2004-09-02 Thread Alex Kanavin
Hi everyone, this patch adds exporting of configuration and interface strings to sysfs. My first ever attempt at making a kernel patch, so if there are any stupid mistakes, tell me and I'll fix them. Anyway, both configuration and interface strings are present on my Nokia 7610 phone, which can