From 1a0f241233ecd91738e2963c8204f7acfceb2bcf Mon Sep 17 00:00:00 2001 From: Matt Porter Date: Sun, 5 Jan 2014 13:11:42 -0500 Subject: 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 --- README | 3 +-- examples/gadget-acm-ecm.c | 2 +- examples/show-gadgets.c | 2 +- 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; -- cgit v1.2.3