mirror of
https://git.proxmox.com/git/fwupd
synced 2025-08-09 22:49:08 +00:00
drop fu_dell_get_cable_type, unused
This commit is contained in:
parent
bce4ab675c
commit
ed538c2b84
@ -219,23 +219,6 @@ fu_dell_get_dock_type (guint8 type)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
guint32
|
|
||||||
fu_dell_get_cable_type (guint8 type)
|
|
||||||
{
|
|
||||||
g_autoptr (FuDellSmiObj) smi_obj = NULL;
|
|
||||||
DOCK_UNION buf;
|
|
||||||
|
|
||||||
/* not yet initialized, look it up */
|
|
||||||
if (type == CABLE_TYPE_NONE) {
|
|
||||||
smi_obj = g_malloc0 (sizeof(FuDellSmiObj));
|
|
||||||
smi_obj->smi = dell_smi_factory (DELL_SMI_DEFAULTS);
|
|
||||||
if (!fu_dell_query_dock (smi_obj, &buf))
|
|
||||||
return 0;
|
|
||||||
type = (buf.record->dock_info).cable_type;
|
|
||||||
}
|
|
||||||
return type;
|
|
||||||
}
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
fu_dell_toggle_dock_mode (FuDellSmiObj *smi_obj, guint32 new_mode,
|
fu_dell_toggle_dock_mode (FuDellSmiObj *smi_obj, guint32 new_mode,
|
||||||
guint32 dock_location, GError **error)
|
guint32 dock_location, GError **error)
|
||||||
|
@ -107,9 +107,6 @@ fu_dell_query_dock (FuDellSmiObj *smi_obj, DOCK_UNION *buf);
|
|||||||
const gchar*
|
const gchar*
|
||||||
fu_dell_get_dock_type (guint8 type);
|
fu_dell_get_dock_type (guint8 type);
|
||||||
|
|
||||||
guint32
|
|
||||||
fu_dell_get_cable_type (guint8 type);
|
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
fu_dell_toggle_dock_mode (FuDellSmiObj *smi_obj, guint32 new_mode,
|
fu_dell_toggle_dock_mode (FuDellSmiObj *smi_obj, guint32 new_mode,
|
||||||
guint32 dock_location, GError **error);
|
guint32 dock_location, GError **error);
|
||||||
|
Loading…
Reference in New Issue
Block a user