diff mbox series

[wireless-next,01/15] wifi: iwlwifi: mld: Rename WIPHY_DEBUGFS_HANDLER_WRAPPER to WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER

Message ID 20250313002008.bb8a1d7907c8.I53325f2f37ccaad2b212d35d10616e06c1555e48@changeid (mailing list archive)
State New
Delegated to: Johannes Berg
Headers show
Series wifi: iwlwifi: updates - 2025-03-13 | expand

Checks

Context Check Description
wifibot/fixes_present success Fixes tag not required for -next series
wifibot/series_format success Posting correctly formatted
wifibot/tree_selection success Clearly marked for wireless-next
wifibot/ynl success Generated files up to date; no warnings/errors; no diff in generated;
wifibot/build_clang success Errors and warnings before: 0 this patch: 0
wifibot/build_32bit success Errors and warnings before: 0 this patch: 0
wifibot/build_allmodconfig_warn success Errors and warnings before: 0 this patch: 0
wifibot/build_clang_rust success No Rust files in patch. Skipping build
wifibot/build_tools success No tools touched, skip
wifibot/check_selftest success No net selftest shell script
wifibot/checkpatch success total: 0 errors, 0 warnings, 0 checks, 47 lines checked
wifibot/deprecated_api success None detected
wifibot/header_inline success No static functions without inline keyword in header files
wifibot/kdoc success Errors and warnings before: 0 this patch: 0
wifibot/source_inline success Was 0 now: 0
wifibot/verify_fixes success No Fixes tag
wifibot/verify_signedoff success Signed-off-by tag matches author and committer

Commit Message

Miri Korenblit March 12, 2025, 10:22 p.m. UTC
From: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>

Renamed the macro WIPHY_DEBUGFS_HANDLER_WRAPPER to
WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER to better reflect its purpose as a
write handler.

Additionally, updated the corresponding macro
WIPHY_DEBUGFS_HANDLER_WRAPPER_MLD to
WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER_MLD for consistency.

This change does not alter the functionality but enhances the
maintainability of the code.

Signed-off-by: Pagadala Yesu Anjaneyulu <pagadala.yesu.anjaneyulu@intel.com>
Reviewed-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
---
 drivers/net/wireless/intel/iwlwifi/mld/debugfs.h | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
diff mbox series

Patch

diff --git a/drivers/net/wireless/intel/iwlwifi/mld/debugfs.h b/drivers/net/wireless/intel/iwlwifi/mld/debugfs.h
index 04c536db8b16..13d97184a31f 100644
--- a/drivers/net/wireless/intel/iwlwifi/mld/debugfs.h
+++ b/drivers/net/wireless/intel/iwlwifi/mld/debugfs.h
@@ -1,6 +1,6 @@ 
 /* SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause */
 /*
- * Copyright (C) 2024 Intel Corporation
+ * Copyright (C) 2024-2025 Intel Corporation
  */
 #include "iface.h"
 #include "sta.h"
@@ -67,7 +67,7 @@  static const struct file_operations iwl_dbgfs_##name##_ops = {		\
 	.release = _iwl_dbgfs_release,					\
 }
 
-#define WIPHY_DEBUGFS_HANDLER_WRAPPER(name)				\
+#define WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER(name)			\
 static ssize_t iwl_dbgfs_##name##_write_handler(struct wiphy *wiphy,	\
 				       struct file *file, char *buf,	\
 				       size_t count, void *data)	\
@@ -97,7 +97,7 @@  static inline struct iwl_mld *iwl_mld_from_vif(struct ieee80211_vif *vif)
 }
 
 #define WIPHY_DEBUGFS_WRITE_WRAPPER(name, bufsz, objtype)		\
-WIPHY_DEBUGFS_HANDLER_WRAPPER(name)					\
+WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER(name)				\
 static ssize_t __iwl_dbgfs_##name##_write(struct file *file,		\
 					  const char __user *user_buf,	\
 					  size_t count, loff_t *ppos)	\
@@ -121,7 +121,7 @@  static ssize_t __iwl_dbgfs_##name##_write(struct file *file,		\
 		.llseek = generic_file_llseek,				\
 	}
 
-#define WIPHY_DEBUGFS_HANDLER_WRAPPER_MLD(name)				\
+#define WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER_MLD(name)			\
 static ssize_t iwl_dbgfs_##name##_write_handler(struct wiphy *wiphy,	\
 				       struct file *file, char *buf,	\
 				       size_t count, void *data)	\
@@ -132,7 +132,7 @@  static ssize_t iwl_dbgfs_##name##_write_handler(struct wiphy *wiphy,	\
 }
 
 #define WIPHY_DEBUGFS_WRITE_WRAPPER_MLD(name)				\
-WIPHY_DEBUGFS_HANDLER_WRAPPER_MLD(name)					\
+WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER_MLD(name)				\
 static ssize_t __iwl_dbgfs_##name##_write(struct file *file,		\
 					  const char __user *user_buf,	\
 					  size_t count, loff_t *ppos)	\
@@ -170,7 +170,7 @@  static ssize_t __iwl_dbgfs_##name##_write(struct file *file,		\
 	}
 
 #define WIPHY_DEBUGFS_WRITE_WRAPPER_IEEE80211(name, bufsz, objtype)	\
-WIPHY_DEBUGFS_HANDLER_WRAPPER(name)					\
+WIPHY_DEBUGFS_WRITE_HANDLER_WRAPPER(name)				\
 static ssize_t _iwl_dbgfs_##name##_write(struct file *file,		\
 					  const char __user *user_buf,	\
 					  size_t count, loff_t *ppos)	\