summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;