usb: typec: Remove unused ucsi_cci_str

ucsi_cci_str() last use was removed in 2019 by
commit 2ede55468c ("usb: typec: ucsi: Remove the old API")

Remove it.

Signed-off-by: "Dr. David Alan Gilbert" <linux@treblig.org>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250609004319.209143-1-linux@treblig.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Dr. David Alan Gilbert
2025-06-09 01:43:19 +01:00
committed by Greg Kroah-Hartman
parent 47c83f95f3
commit 8fa23514f2
2 changed files with 0 additions and 18 deletions

View File

@@ -33,23 +33,6 @@ const char *ucsi_cmd_str(u64 raw_cmd)
return ucsi_cmd_strs[(cmd >= ARRAY_SIZE(ucsi_cmd_strs)) ? 0 : cmd];
}
const char *ucsi_cci_str(u32 cci)
{
if (UCSI_CCI_CONNECTOR(cci)) {
if (cci & UCSI_CCI_ACK_COMPLETE)
return "Event pending (ACK completed)";
if (cci & UCSI_CCI_COMMAND_COMPLETE)
return "Event pending (command completed)";
return "Connector Change";
}
if (cci & UCSI_CCI_ACK_COMPLETE)
return "ACK completed";
if (cci & UCSI_CCI_COMMAND_COMPLETE)
return "Command completed";
return "";
}
static const char * const ucsi_recipient_strs[] = {
[UCSI_RECIPIENT_CON] = "port",
[UCSI_RECIPIENT_SOP] = "partner",

View File

@@ -10,7 +10,6 @@
#include <linux/usb/typec_altmode.h>
const char *ucsi_cmd_str(u64 raw_cmd);
const char *ucsi_cci_str(u32 cci);
const char *ucsi_recipient_str(u8 recipient);
DECLARE_EVENT_CLASS(ucsi_log_command,