summaryrefslogtreecommitdiff
path: root/src/usbg.c
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-14 13:23:12 +0100
committerKrzysztof Opasiak <k.opasiak@samsung.com>2016-12-14 13:23:12 +0100
commit67aaf8ea7ecf6f609e09816750fd1bb3aaa4bab6 (patch)
tree26713eab5f96afd635638e40caed2233bd819ec4 /src/usbg.c
parent4fe38766f7c48c2e05e6e62013f822001fcee494 (diff)
downloadlibusbg-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.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/usbg.c b/src/usbg.c
index ca14d2a..eda5712 100644
--- a/src/usbg.c
+++ b/src/usbg.c
@@ -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;