1
0
Fork 0
mirror of https://github.com/linux-usb-gadgets/libusbgx.git synced 2025-07-13 08:59:43 +03:00
Commit graph

7 commits

Author SHA1 Message Date
Andri Yngvason
69207305eb examples: Fix always-true condition
The intent here was probably to dereference rather than to take the
address.
2024-09-13 00:49:35 +02:00
Paul Wise
38dd92f7c0
gadget-vid-pid-remove: re-split default vendor/product defines from variables
Fixes: commit 852087a867
2021-10-17 10:09:19 +08:00
Michael Tretter
67605a0d95 libusbgx: examples: gadget-vid-pid-remove: fix exit code on success
The gadget-vid-pid-remove tool always returns -EINVAL, since ret is
initialized as -EINVAL and never set to 0.

Set ret to 0 on the success exit path to signal that a gadget was
successfully removed.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
2021-06-22 18:32:44 +02:00
Michael Grzeschik
852087a867 libusbgx: examples: gadget-vid-pid-remove: add dynamic vid pid support
Signed-off-by: Michael Grzeschik <m.grzeschik@pengutronix.de>
2021-04-29 01:10:17 +02:00
Krzysztof Opasiak
3749ccec3d libusbgx: Remove typedefs for public structures
Let's remove typedefs from public structures to clearly
indicate users which structures can be accessed and which
should be used only as handles.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2016-12-14 13:03:26 +01:00
Krzysztof Opasiak
0cd967b99b libusbgx: Rework API to use usbg_udc structure
Using string as udc identifier provides a lot
of troubles. To be more consistent with rest of
API rework it to start using usbg_udc structure
instead of using char *.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 21:41:57 +01:00
Krzysztof Opasiak
2104b7e1fe libusbgx: Update examples to new API functionality.
Removing gadget/config/function/binding functionality
has been added to API so add example of how to use it.

Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
[Port from libusbg and update description]
Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
2015-12-22 20:40:05 +01:00