[PATCH 0/9] libusbg: Add usbg_udc structure

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear Matt,

This series adds usbg_udc structure and fixes some typos introduced
in previous patches.

Before this series UDC didn't have its own structure. Gadget enable
took const char * as parameter. Such approach is inconsisten with
rest of API.

This series introduce structure usbg_udc as abstraction of UDC.
This makes API more consistent and some functions (like enable
gadget) are now shorter and easier to read. Moreover usage of
such structure allows to implement usbg_get_udc_gadget() which
provides possibility to check which gadget is enabled on selected UDC.

In addition this series fix a lot of typos introduced in previous
patches. Now doxygen generates documentation without errors.

I'm looking froward for your review and merge if you find it
suitable. I have also created a github pull request:

https://github.com/libusbg/libusbg/pull/10

Please let me also notice that there are still patch series
which are pending for your review and some of them are waiting
since april.

I have reviewed and tested previous patches. They are all merged into
master branch:

https://github.com/kopasiak/libusbg

Feel free to fetch those changes if you find it reasonable.

--
BR's
Krzysztof Opasiak
Samsung R&D Institute Poland
Samsung Electronics
k.opasiak@xxxxxxxxxxx

Krzysztof Opasiak (9):
  libusbg: doc: Fix typos in doxygen documentation
  libusbg: Always add '\0' at end of string
  libusbg: Simplify getting names form library structures
  libusbg: Add udc structure
  libusbg: Replace usbg_get_udcs() with loop
  libusbg: Rework API to use usbg_udc structure
  libusbg: Refresh gadget UDC while each usbg_get_gadget_udc()
  libusbg: Allow to get gadget enabled on given UDC
  libusbg: Add example how to use usbg_udc structure

 examples/Makefile.am             |    3 +-
 examples/gadget-vid-pid-remove.c |   12 +-
 examples/show-gadgets.c          |   54 ++++--
 examples/show-udcs.c             |   61 +++++++
 include/usbg/usbg.h              |  181 ++++++++++++++-----
 src/usbg.c                       |  358 ++++++++++++++++++++++++++++++--------
 6 files changed, 529 insertions(+), 140 deletions(-)
 create mode 100644 examples/show-udcs.c

-- 
1.7.9.5

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux