libusbgx: Fix mapping function type into attributes type
authorPawel Szewczyk <p.szewczyk@samsung.com>
Tue, 28 Apr 2015 08:51:51 +0000 (10:51 +0200)
committerKrzysztof Opasiak <k.opasiak@samsung.com>
Tue, 22 Dec 2015 20:45:36 +0000 (21:45 +0100)
Type of ffs function's attribute is not PHONET, but FFS.

Signed-off-by: Pawel Szewczyk <p.szewczyk@samsung.com>
[Update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
src/usbg.c

index 6239c60..05cc0bf 100644 (file)
@@ -247,7 +247,7 @@ int usbg_lookup_function_attrs_type(int f_type)
                ret = USBG_F_ATTRS_PHONET;
                break;
        case F_FFS:
-               ret = USBG_F_ATTRS_PHONET;
+               ret = USBG_F_ATTRS_FFS;
                break;
        case F_MASS_STORAGE:
                ret = USBG_F_ATTRS_MS;