On Mon, 21 Mar 2005, Nick Sillik wrote:

> Yes, I figured this one out already, now my problem is the other message I 
> sent
> here, and a new one, I'm getting:
> 
> In file included from drivers/usb/storage/usb.c:184:
> drivers/usb/storage/unusual_devs.h:921: warning: initialization from
> incompatible pointer type
> 
> 
> When I compile. This is what I have in unusual_devs.h now:
> 
> #ifdef CONFIG_USB_STORAGE_ONETOUCH
> [line 921]UNUSUAL_DEV(  0x0d49, 0x7010, 0x0000, 0x9999,
>               "Maxtor",
>               "OneTouch External Harddrive",
>               US_SC_DEVICE, US_PR_DEVICE, onetouch_connect_input,
>               0),
> #endif

That warning message means your onetouch_connect_input function has the 
wrong signature to appear in an unusual_devs entry.  You need to change 
the function to match the prototype for us_unusual_dev.initFunction given 
in usb.h.  In short, the function has to take a single argument of type 
struct us_data * and it has to return int.

Alan Stern



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to