summaryrefslogtreecommitdiff
path: root/drivers/usb/misc/phidgetkit.c
diff options
context:
space:
mode:
authorLuiz Fernando N. Capitulino <lcapitulino@mandriva.com.br>2006-10-26 20:02:56 +0400
committerGreg Kroah-Hartman <gregkh@suse.de>2006-12-02 01:23:28 +0300
commit8419404949488bba4504005c0d1180fb07bef740 (patch)
tree9a64facea9c26a99f4f33ca3b4db23e889683488 /drivers/usb/misc/phidgetkit.c
parent66722a194ef96a09ac12d0fe2f9e206f86c29c9f (diff)
downloadlinux-8419404949488bba4504005c0d1180fb07bef740.tar.xz
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