More cleanups for usbtmc

Greg KH greg at kroah.com
Tue Aug 26 19:46:22 UTC 2008


On Sun, Aug 03, 2008 at 05:05:42PM +0300, Felipe Balbi wrote:
> Hi all,
> 
> Greg, attached is some more cleanups for usbtmc driver.

Thanks a lot, I've merged these in with the current patch.

> I was thinking on moving at least get_capabilities to a sysfs
> file, what do you think ?
> 
> I was wondering something like:
> 
> /sys/.../capabilities/ :
>           - interface_capabilities
>           - device_capabilities
>           - usb488_interface_capabilities
>           - usb488_device_capabilities
> 
> during probe we could issue the get capabilities usb_control_msg()
> and save the result in device's structure, later we just have to print, I
> assume device won't change its capabilities on the fly.

That's a good idea.  I'll go try to implement that right now.

thanks,

greg k-h



More information about the devel mailing list