]> xenbits.xensource.com Git - people/larsk/xen.git/commit
libxl_usb: usbctrl, make use of generic device handling functions
authorAnthony PERARD <anthony.perard@citrix.com>
Thu, 13 Jun 2019 15:26:40 +0000 (16:26 +0100)
committerIan Jackson <ian.jackson@eu.citrix.com>
Fri, 20 Sep 2019 09:41:01 +0000 (10:41 +0100)
commit4750c9237bd49a2179d5bd28e7259df9c46de25a
tree7751130b680f02d630fa910ae0b2e7cc2b032014
parent1d1800ed347de5da7d45523758e33561d0b3c72f
libxl_usb: usbctrl, make use of generic device handling functions

Two functions in generate `libxl_device_usbctrl' can be replaced by
generic macro:
- libxl_device_usbctrl_list -> LIBXL_DEFINE_DEVICE_LIST
- libxl_devid_to_device_usbctrl -> LIBXL_DEFINE_DEVID_TO_DEVICE

This patch only needs to define `libxl__usbctrl_devtype.from_xenstore'
to makes use of them.

Small change, libxl_devid_to_device_usbctrl doesn't list all usbctrl
anymore before finding the right one.

Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
tools/libxl/libxl_usb.c