Index: uspace/lib/usb/include/usb/usb.h
===================================================================
--- uspace/lib/usb/include/usb/usb.h	(revision 1dc4a5e441cc195a33bd958ea4994dcd59141df0)
+++ uspace/lib/usb/include/usb/usb.h	(revision 8e3d17fdbdbefb176d1318cc8a3b73d89545961d)
@@ -36,4 +36,5 @@
 #define LIBUSB_USB_H_
 
+#include <bool.h>
 #include <sys/types.h>
 #include <byteorder.h>
@@ -130,4 +131,15 @@
 } usb_target_t;
 
+/** Check USB target for allowed values (address and endpoint).
+ *
+ * @param target.
+ * @return True, if values are wihtin limits, false otherwise.
+ */
+static inline bool usb_target_is_valid(usb_target_t target)
+{
+	return !(target.endpoint > 15 || target.endpoint < 0
+	    || target.address >= USB11_ADDRESS_MAX || target.address < 0);
+}
+
 /** Compare USB targets (addresses and endpoints).
  *
