summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Porter <mporter@linaro.org>2014-01-05 13:11:42 -0500
committerMatt Porter <mporter@linaro.org>2014-01-21 07:58:24 -0500
commit1a0f241233ecd91738e2963c8204f7acfceb2bcf (patch)
treeb1e4b1523e1abdff573ae5ddda67cea4d4fa93a0
parent14949f6764dba63356515077ddfdbb4a4d21782c (diff)
downloadlibusbg-1a0f241233ecd91738e2963c8204f7acfceb2bcf.tar.gz
libusbg-1a0f241233ecd91738e2963c8204f7acfceb2bcf.tar.bz2
libusbg-1a0f241233ecd91738e2963c8204f7acfceb2bcf.zip
libusbg: use /sys/kernel/config mount point in examples
Update documentation and example source code to reflect use of the standard /sys/kernel/config mount point for configfs. Signed-off-by: Matt Porter <mporter@linaro.org>
-rw-r--r--README3
-rw-r--r--examples/gadget-acm-ecm.c2
-rw-r--r--examples/show-gadgets.c2
3 files changed, 3 insertions, 4 deletions
diff --git a/README b/README
index 38e388d..fba9959 100644
--- a/README
+++ b/README
@@ -14,8 +14,7 @@ examples.
To run the examples:
-$ mkdir /config
-$ mount -t configfs none /config
+$ mount -t configfs none /sys/kernel/config
$ gadget-acm-ecm
$ show-gadgets
ID 1d6b:0104 'g1'
diff --git a/examples/gadget-acm-ecm.c b/examples/gadget-acm-ecm.c
index e4cdd19..45d8eff 100644
--- a/examples/gadget-acm-ecm.c
+++ b/examples/gadget-acm-ecm.c
@@ -36,7 +36,7 @@ int main(void)
struct function *f_acm0, *f_acm1, *f_ecm;
int ret = -EINVAL;
- s = usbg_init("/config");
+ s = usbg_init("/sys/kernel/config");
if (!s) {
fprintf(stderr, "Error on USB gadget init\n");
goto error1;
diff --git a/examples/show-gadgets.c b/examples/show-gadgets.c
index 6de7797..fa90b88 100644
--- a/examples/show-gadgets.c
+++ b/examples/show-gadgets.c
@@ -96,7 +96,7 @@ int main(void)
struct binding *b;
struct function *f_acm0, *f_acm1, *f_ecm;
- s = usbg_init("/config");
+ s = usbg_init("/sys/kernel/config");
if (!s) {
fprintf(stderr, "Error on USB gadget init\n");
return -EINVAL;