diff options
author | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-12-14 13:23:12 +0100 |
---|---|---|
committer | Krzysztof Opasiak <k.opasiak@samsung.com> | 2016-12-14 13:23:12 +0100 |
commit | 67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6 (patch) | |
tree | 26713eab5f96afd635638e40caed2233bd819ec4 /src/usbg.c | |
parent | 4fe38766f7c48c2e05e6e62013f822001fcee494 (diff) | |
download | libusbg-67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6.tar.gz libusbg-67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6.tar.bz2 libusbg-67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6.zip |
libusbgx: Use string name similar to USB spec
str_ser, str_prd and str_mnf are a little bit weird names
so let's replace them with names defined by USB spec.
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'src/usbg.c')
-rw-r--r-- | src/usbg.c | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -773,15 +773,15 @@ static int usbg_parse_gadget_strs(const char *path, const char *name, int lang, } closedir(dir); - ret = usbg_read_string(spath, "", "serialnumber", g_strs->str_ser); + ret = usbg_read_string(spath, "", "serialnumber", g_strs->serial); if (ret != USBG_SUCCESS) goto out; - ret = usbg_read_string(spath, "", "manufacturer", g_strs->str_mnf); + ret = usbg_read_string(spath, "", "manufacturer", g_strs->manufacturer); if (ret != USBG_SUCCESS) goto out; - ret = usbg_read_string(spath, "", "product", g_strs->str_prd); + ret = usbg_read_string(spath, "", "product", g_strs->product); if (ret != USBG_SUCCESS) goto out; @@ -1691,15 +1691,15 @@ int usbg_set_gadget_strs(usbg_gadget *g, int lang, if (ret != USBG_SUCCESS) goto out; - ret = usbg_write_string(path, "", "serialnumber", g_strs->str_ser); + ret = usbg_write_string(path, "", "serialnumber", g_strs->serial); if (ret != USBG_SUCCESS) goto out; - ret = usbg_write_string(path, "", "manufacturer", g_strs->str_mnf); + ret = usbg_write_string(path, "", "manufacturer", g_strs->manufacturer); if (ret != USBG_SUCCESS) goto out; - ret = usbg_write_string(path, "", "product", g_strs->str_prd); + ret = usbg_write_string(path, "", "product", g_strs->product); out: return ret; |