summaryrefslogtreecommitdiffstats
path: root/drivers/usb/misc/phidgetkit.c
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>2006-10-26 18:02:56 +0200
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-01 23:23:28 +0100
commit8419404949488bba4504005c0d1180fb07bef740 (patch)
tree9a64facea9c26a99f4f33ca3b4db23e889683488 /drivers/usb/misc/phidgetkit.c
parentUSB: onetouch: Use usb_endpoint_* functions (diff)
downloadlinux-8419404949488bba4504005c0d1180fb07bef740.tar.xz
linux-8419404949488bba4504005c0d1180fb07bef740.zip
USB: phidgetkit: Use usb_endpoint_* functions
Signed-off-by: Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/misc/phidgetkit.c')
-rw-r--r--drivers/usb/misc/phidgetkit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c
index abb4dcd811ac..0dc0d034cc9a 100644
--- a/drivers/usb/misc/phidgetkit.c
+++ b/drivers/usb/misc/phidgetkit.c
@@ -551,7 +551,7 @@ static int interfacekit_probe(struct usb_interface *intf, const struct usb_devic
return -ENODEV;
endpoint = &interface->endpoint[0].desc;
- if (!(endpoint->bEndpointAddress & 0x80))
+ if (!usb_endpoint_dir_in(endpoint))
return -ENODEV;
/*
* bmAttributes