wifi: iwlwifi: remove the mvm prefix from iwl_mvm_ctdp_cmd
authorEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 19 Jan 2025 19:03:13 +0000 (21:03 +0200)
committerJohannes Berg <johannes.berg@intel.com>
Tue, 11 Feb 2025 10:57:17 +0000 (11:57 +0100)
This command is not specific to iwlmvm.

Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/20250119210104.04f3afcf9c77.Ic2b6f265d0b4aea25ccc7114d6f48afa621871be@changeid
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
drivers/net/wireless/intel/iwlwifi/fw/api/phy.h
drivers/net/wireless/intel/iwlwifi/mvm/tt.c

index c73d4d5978572347bfb2eb9e407692d5391e349c..1dce28f3afa033e78705437fc4c3e4ccedb0aedb 100644 (file)
@@ -19,7 +19,7 @@ enum iwl_phy_ops_subcmd_ids {
        CMD_DTS_MEASUREMENT_TRIGGER_WIDE = 0x0,
 
        /**
-        * @CTDP_CONFIG_CMD: &struct iwl_mvm_ctdp_cmd
+        * @CTDP_CONFIG_CMD: &struct iwl_ctdp_cmd
         */
        CTDP_CONFIG_CMD = 0x03,
 
@@ -195,25 +195,25 @@ struct ct_kill_notif {
 } __packed; /* CT_KILL_NOTIFICATION_API_S_VER_1, CT_KILL_NOTIFICATION_API_S_VER_2 */
 
 /**
-* enum iwl_mvm_ctdp_cmd_operation - CTDP command operations
+* enum iwl_ctdp_cmd_operation - CTDP command operations
 * @CTDP_CMD_OPERATION_START: update the current budget
 * @CTDP_CMD_OPERATION_STOP: stop ctdp
 * @CTDP_CMD_OPERATION_REPORT: get the average budget
 */
-enum iwl_mvm_ctdp_cmd_operation {
+enum iwl_ctdp_cmd_operation {
        CTDP_CMD_OPERATION_START        = 0x1,
        CTDP_CMD_OPERATION_STOP         = 0x2,
        CTDP_CMD_OPERATION_REPORT       = 0x4,
 };/* CTDP_CMD_OPERATION_TYPE_E */
 
 /**
- * struct iwl_mvm_ctdp_cmd - track and manage the FW power consumption budget
+ * struct iwl_ctdp_cmd - track and manage the FW power consumption budget
  *
- * @operation: see &enum iwl_mvm_ctdp_cmd_operation
+ * @operation: see &enum iwl_ctdp_cmd_operation
  * @budget: the budget in milliwatt
  * @window_size: defined in API but not used
  */
-struct iwl_mvm_ctdp_cmd {
+struct iwl_ctdp_cmd {
        __le32 operation;
        __le32 budget;
        __le32 window_size;
index d92470960b38b624cf1fba4fbd2773b3a0f7d630..256f8f558b1540e856679fe190c285712b646b59 100644 (file)
@@ -506,7 +506,7 @@ static const u32 iwl_mvm_cdev_budgets[] = {
 
 int iwl_mvm_ctdp_command(struct iwl_mvm *mvm, u32 op, u32 state)
 {
-       struct iwl_mvm_ctdp_cmd cmd = {
+       struct iwl_ctdp_cmd cmd = {
                .operation = cpu_to_le32(op),
                .budget = cpu_to_le32(iwl_mvm_cdev_budgets[state]),
                .window_size = 0,