diff options
author | Luiz Fernando N. Capitulino <lcapitulino@mandriva.com.br> | 2006-10-26 16:02:56 (GMT) |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-12-01 22:23:28 (GMT) |
commit | 8419404949488bba4504005c0d1180fb07bef740 (patch) | |
tree | 9a64facea9c26a99f4f33ca3b4db23e889683488 /drivers/usb | |
parent | 66722a194ef96a09ac12d0fe2f9e206f86c29c9f (diff) | |
download | linux-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')
-rw-r--r-- | drivers/usb/misc/phidgetkit.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/phidgetkit.c b/drivers/usb/misc/phidgetkit.c index abb4dcd..0dc0d03 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 |