function_names table is for internal usage only. User should use function_types enum. Signed-off-by: Krzysztof Opasiak <k.opasiak@xxxxxxxxxxx> --- include/usbg/usbg.h | 17 ----------------- src/usbg.c | 17 +++++++++++++++++ 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h index 3317ed0..ae2d037 100644 --- a/include/usbg/usbg.h +++ b/include/usbg/usbg.h @@ -151,23 +151,6 @@ enum function_type }; /** - * @var function_names - * @brief Name strings for supported USB function types - */ -const char *function_names[] = -{ - "gser", - "acm", - "obex", - "ecm", - "geth", - "ncm", - "eem", - "rndis", - "phonet", -}; - -/** * @struct serial_attrs * @brief Attributes for Serial, ACM, and OBEX USB functions */ diff --git a/src/usbg.c b/src/usbg.c index ab9bcdf..e924477 100644 --- a/src/usbg.c +++ b/src/usbg.c @@ -36,6 +36,23 @@ * @todo Error checking and return code propagation */ +/** + * @var function_names + * @brief Name strings for supported USB function types + */ +const char *function_names[] = +{ + "gser", + "acm", + "obex", + "ecm", + "geth", + "ncm", + "eem", + "rndis", + "phonet", +}; + #define ERROR(msg, ...) do {\ char *str;\ fprintf(stderr, "%s() "msg" \n", \ -- 1.7.9.5 -- 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