]> www.infradead.org Git - users/willy/xarray.git/commitdiff
usb: typec: ucsi: Rename SET_UOM UCSI command to SET_CCOM
authorMadhu M <madhu.m@intel.com>
Sat, 18 Jan 2025 17:24:54 +0000 (22:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 3 Feb 2025 15:27:30 +0000 (16:27 +0100)
Rename the SET_UOM UCSI command to SET_CCOM as per the UCSI 3.0 spec.

Signed-off-by: Madhu M <madhu.m@intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20250118172455.701348-1-madhu.m@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/typec/ucsi/debugfs.c
drivers/usb/typec/ucsi/trace.c
drivers/usb/typec/ucsi/ucsi.h

index 83ff23086d79487200194b8fa157a49e3935cc1b..638ac41b4b01355c64a88782abb3e3fb07b18894 100644 (file)
@@ -28,7 +28,7 @@ static int ucsi_cmd(void *data, u64 val)
        ucsi->debugfs->status = 0;
 
        switch (UCSI_COMMAND(val)) {
-       case UCSI_SET_UOM:
+       case UCSI_SET_CCOM:
        case UCSI_SET_UOR:
        case UCSI_SET_PDR:
        case UCSI_CONNECTOR_RESET:
index cb62ad83576194cb7a8d7ae30c38e952708c6a56..596a9542d4010ae2c707425f2ebd11bab74b63c3 100644 (file)
@@ -12,7 +12,7 @@ static const char * const ucsi_cmd_strs[] = {
        [UCSI_SET_NOTIFICATION_ENABLE]  = "SET_NOTIFICATION_ENABLE",
        [UCSI_GET_CAPABILITY]           = "GET_CAPABILITY",
        [UCSI_GET_CONNECTOR_CAPABILITY] = "GET_CONNECTOR_CAPABILITY",
-       [UCSI_SET_UOM]                  = "SET_UOM",
+       [UCSI_SET_CCOM]                 = "SET_CCOM",
        [UCSI_SET_UOR]                  = "SET_UOR",
        [UCSI_SET_PDM]                  = "SET_PDM",
        [UCSI_SET_PDR]                  = "SET_PDR",
index 82735eb34f0e335c769799465bb40a8d40a75961..ebfd8a953a93bb621efdda46e36f6a4bf693bd18 100644 (file)
@@ -106,7 +106,7 @@ void ucsi_connector_change(struct ucsi *ucsi, u8 num);
 #define UCSI_GET_CAPABILITY_SIZE               128
 #define UCSI_GET_CONNECTOR_CAPABILITY          0x07
 #define UCSI_GET_CONNECTOR_CAPABILITY_SIZE     32
-#define UCSI_SET_UOM                           0x08
+#define UCSI_SET_CCOM                          0x08
 #define UCSI_SET_UOR                           0x09
 #define UCSI_SET_PDM                           0x0a
 #define UCSI_SET_PDR                           0x0b