The comment for this states that it returns -ENODEV when the function is inactive. Really, an inactive function is treated as having no interfaces, so -EDOM is returned. Signed-off-by: Jerry Zhang <zhangjerry@xxxxxxxxxx> --- include/uapi/linux/usb/functionfs.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/uapi/linux/usb/functionfs.h b/include/uapi/linux/usb/functionfs.h index b2a31a55a612..93085017513c 100644 --- a/include/uapi/linux/usb/functionfs.h +++ b/include/uapi/linux/usb/functionfs.h @@ -269,8 +269,7 @@ struct usb_functionfs_event { /* * Returns reverse mapping of an interface. Called on EP0. If there - * is no such interface returns -EDOM. If function is not active - * returns -ENODEV. + * is no such interface returns -EDOM. */ #define FUNCTIONFS_INTERFACE_REVMAP _IO('g', 128) -- 2.12.2.816.g2cccc81164-goog -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html