diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2020-10-25 14:05:50 +0100 |
---|---|---|
committer | Aleksander Morgado <aleksander@aleksander.es> | 2020-11-09 18:41:57 +0100 |
commit | 7faa3a5e2518765bb3683c26ecdf3155046424b0 (patch) | |
tree | 8114122cf8fb8d7f19853652934c7a54348e485a /src/mm-port-mbim.c | |
parent | 4ec2db75b8fc1175c12d007ca64d2edcf630e3cc (diff) |
port-mbim: allow specifying input subsystem
We have assumed until now that all MBIM ports are based on the
cdc_mbim driver, exposed in the 'usbmisc' subsystem by the cdc-wdm
driver.
This may no longer be true, so allow creating MBIM ports with
an explicit subsystem instead of defaulting always to USBMISC.
Diffstat (limited to 'src/mm-port-mbim.c')
-rw-r--r-- | src/mm-port-mbim.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-port-mbim.c b/src/mm-port-mbim.c index 72004da1..57b7cf02 100644 --- a/src/mm-port-mbim.c +++ b/src/mm-port-mbim.c @@ -589,11 +589,12 @@ mm_port_mbim_peek_device (MMPortMbim *self) /*****************************************************************************/ MMPortMbim * -mm_port_mbim_new (const gchar *name) +mm_port_mbim_new (const gchar *name, + MMPortSubsys subsys) { return MM_PORT_MBIM (g_object_new (MM_TYPE_PORT_MBIM, MM_PORT_DEVICE, name, - MM_PORT_SUBSYS, MM_PORT_SUBSYS_USBMISC, + MM_PORT_SUBSYS, subsys, MM_PORT_TYPE, MM_PORT_TYPE_MBIM, NULL)); } |