diff options
author | Matt Porter <mporter@linaro.org> | 2014-01-05 13:11:42 -0500 |
---|---|---|
committer | Matt Porter <mporter@linaro.org> | 2014-01-21 07:58:24 -0500 |
commit | 1a0f241233ecd91738e2963c8204f7acfceb2bcf (patch) | |
tree | b1e4b1523e1abdff573ae5ddda67cea4d4fa93a0 | |
parent | 14949f6764dba63356515077ddfdbb4a4d21782c (diff) | |
download | libusbg-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-- | README | 3 | ||||
-rw-r--r-- | examples/gadget-acm-ecm.c | 2 | ||||
-rw-r--r-- | examples/show-gadgets.c | 2 |
3 files changed, 3 insertions, 4 deletions
@@ -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; |