# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.592 -> 1.593 # drivers/usb/vicam.c 1.3 -> 1.4 # drivers/usb/stv680.h 1.3 -> 1.4 # include/linux/hiddev.h 1.2 -> 1.3 # drivers/usb/se401.c 1.8 -> 1.9 # drivers/usb/se401.h 1.3 -> 1.4 # drivers/usb/brlvger.c 1.1 -> 1.2 # drivers/usb/vicamurbs.h 1.1 -> 1.2 # drivers/usb/usb.c 1.22 -> 1.23 # drivers/usb/pwc-if.c 1.11 -> 1.12 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/08/20 greg@kroah.com 1.593 # USB: minor cleanups and __FUNCTION__ fixes. # -------------------------------------------- # diff -Nru a/drivers/usb/brlvger.c b/drivers/usb/brlvger.c --- a/drivers/usb/brlvger.c Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/brlvger.c Wed Aug 21 11:47:22 2002 @@ -208,8 +208,8 @@ #define err(args...) \ ({ printk(KERN_ERR "Voyager: " args); \ printk("\n"); }) -#define dbgprint(args...) \ - ({ printk(KERN_DEBUG "Voyager: " __FUNCTION__ ": " args); \ +#define dbgprint(fmt, args...) \ + ({ printk(KERN_DEBUG "Voyager: %s: " fmt, __FUNCTION__, ##args); \ printk("\n"); }) #define dbg(args...) \ ({ if(debug >= 1) dbgprint(args); }) diff -Nru a/drivers/usb/pwc-if.c b/drivers/usb/pwc-if.c --- a/drivers/usb/pwc-if.c Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/pwc-if.c Wed Aug 21 11:47:22 2002 @@ -65,7 +65,7 @@ /* Function prototypes and driver templates */ /* hotplug device table support */ -static __devinitdata struct usb_device_id pwc_device_table [] = { +static struct usb_device_id pwc_device_table [] = { { USB_DEVICE(0x0471, 0x0302) }, /* Philips models */ { USB_DEVICE(0x0471, 0x0303) }, { USB_DEVICE(0x0471, 0x0304) }, diff -Nru a/drivers/usb/se401.c b/drivers/usb/se401.c --- a/drivers/usb/se401.c Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/se401.c Wed Aug 21 11:47:22 2002 @@ -41,18 +41,12 @@ #include #include -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0) -#define virt_to_page(arg) MAP_NR(arg) -#define vmalloc_32 vmalloc -#endif - #include "se401.h" static int flickerless=0; static int video_nr = -1; -#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 3, 0) -static __devinitdata struct usb_device_id device_table [] = { +static struct usb_device_id device_table [] = { { USB_DEVICE(0x03e8, 0x0004) },/* Endpoints/Aox SE401 */ { USB_DEVICE(0x0471, 0x030b) },/* Philips PCVC665K */ { USB_DEVICE(0x047d, 0x5001) },/* Kensington 67014 */ @@ -62,7 +56,6 @@ }; MODULE_DEVICE_TABLE(usb, device_table); -#endif MODULE_AUTHOR("Jeroen Vreeken "); MODULE_DESCRIPTION("SE401 USB Camera Driver"); @@ -1448,12 +1441,8 @@ return 0; } -#if LINUX_VERSION_CODE < KERNEL_VERSION(2, 3, 0) -static void* se401_probe(struct usb_device *dev, unsigned int ifnum) -#else -static void* __devinit se401_probe(struct usb_device *dev, unsigned int ifnum, +static void* se401_probe(struct usb_device *dev, unsigned int ifnum, const struct usb_device_id *id) -#endif { struct usb_interface_descriptor *interface; struct usb_se401 *se401; @@ -1582,9 +1571,7 @@ static struct usb_driver se401_driver = { name: "se401", -#if LINUX_VERSION_CODE > KERNEL_VERSION(2, 3, 0) id_table: device_table, -#endif probe: se401_probe, disconnect: se401_disconnect }; diff -Nru a/drivers/usb/se401.h b/drivers/usb/se401.h --- a/drivers/usb/se401.h Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/se401.h Wed Aug 21 11:47:22 2002 @@ -10,7 +10,7 @@ #ifdef se401_DEBUG # define PDEBUG(level, fmt, args...) \ -if (debug >= level) info("[" __PRETTY_FUNCTION__ ":%d] " fmt, __LINE__ , ## args) +if (debug >= level) info("[%s:%d] " fmt, __PRETTY_FUNCTION__, __LINE__ , ## args) #else # define PDEBUG(level, fmt, args...) do {} while(0) #endif diff -Nru a/drivers/usb/stv680.h b/drivers/usb/stv680.h --- a/drivers/usb/stv680.h Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/stv680.h Wed Aug 21 11:47:22 2002 @@ -45,7 +45,7 @@ /* fmt 4 */ #define STV_VIDEO_PALETTE VIDEO_PALETTE_RGB24 -static __devinitdata struct usb_device_id device_table[] = { +static struct usb_device_id device_table[] = { {USB_DEVICE (USB_PENCAM_VENDOR_ID, USB_PENCAM_PRODUCT_ID)}, {} }; diff -Nru a/drivers/usb/usb.c b/drivers/usb/usb.c --- a/drivers/usb/usb.c Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/usb.c Wed Aug 21 11:47:22 2002 @@ -1145,7 +1145,8 @@ * This function sends a simple control message to a specified endpoint * and waits for the message to complete, or timeout. * - * If successful, it returns 0, othwise a negative error number. + * If successful, it returns the number of bytes transferred; + * otherwise, it returns a negative error number. * * Don't use this function from within an interrupt context, like a * bottom half handler. If you need a asyncronous message, or need to send @@ -1188,9 +1189,9 @@ * This function sends a simple bulk message to a specified endpoint * and waits for the message to complete, or timeout. * - * If successful, it returns 0, othwise a negative error number. - * The number of actual bytes transferred will be plaed in the - * actual_timeout paramater. + * If successful, it returns 0, otherwise a negative error number. + * The number of actual bytes transferred will be stored in the + * actual_length paramater. * * Don't use this function from within an interrupt context, like a * bottom half handler. If you need a asyncronous message, or need to diff -Nru a/drivers/usb/vicam.c b/drivers/usb/vicam.c --- a/drivers/usb/vicam.c Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/vicam.c Wed Aug 21 11:47:22 2002 @@ -809,7 +809,7 @@ return 1; } -static void * __devinit vicam_probe(struct usb_device *udev, unsigned int ifnum, +static void * vicam_probe(struct usb_device *udev, unsigned int ifnum, const struct usb_device_id *id) { struct usb_vicam *vicam; diff -Nru a/drivers/usb/vicamurbs.h b/drivers/usb/vicamurbs.h --- a/drivers/usb/vicamurbs.h Wed Aug 21 11:47:22 2002 +++ b/drivers/usb/vicamurbs.h Wed Aug 21 11:47:22 2002 @@ -17,12 +17,6 @@ /* Request 0x51 Image Setup */ -/* 128x98 ? 0x3180 size */ -static unsigned char s128x98bw[] = { - 0, 0x34, 0xC4, 0x00, 0x00, 0x00, 0, 0, - 0x18, 0x02, 0x00, 0x00, 0x40, 0x00, 0x00, 0x00 -}; - /* 128x122 3D80 size */ static unsigned char s128x122bw[] = { 0, 0x34, 0xF4, 0x00, 0x00, 0x00, 0, 0, diff -Nru a/include/linux/hiddev.h b/include/linux/hiddev.h --- a/include/linux/hiddev.h Wed Aug 21 11:47:22 2002 +++ b/include/linux/hiddev.h Wed Aug 21 11:47:22 2002 @@ -183,7 +183,7 @@ int __init hiddev_init(void); void __exit hiddev_exit(void); #else -static inline void *hiddev_connect(struct hid_device *hid) { return NULL; } +static inline int hiddev_connect(struct hid_device *hid) { return -1; } static inline void hiddev_disconnect(struct hid_device *hid) { } static inline void hiddev_hid_event(struct hid_device *hid, unsigned int usage, int value) { } static inline int hiddev_init(void) { return 0; }