Commit 3856f1b3 authored by Yihao Han's avatar Yihao Han Committed by Johannes Berg
Browse files

mac80211: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE



Fix the following coccicheck warning:
./drivers/net/wireless/mac80211_hwsim.c:1040:0-23: WARNING:
hwsim_fops_rx_rssi should be defined with
DEFINE_DEBUGFS_ATTRIBUTE

Signed-off-by: default avatarYihao Han <hanyihao@vivo.com>
Link: https://lore.kernel.org/r/20220218070228.6210-1-hanyihao@vivo.com


[fix indentation]
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent 19222601
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -1037,7 +1037,7 @@ static int hwsim_fops_rx_rssi_write(void *dat, u64 val)
	return 0;
}

DEFINE_SIMPLE_ATTRIBUTE(hwsim_fops_rx_rssi,
DEFINE_DEBUGFS_ATTRIBUTE(hwsim_fops_rx_rssi,
			 hwsim_fops_rx_rssi_read, hwsim_fops_rx_rssi_write,
			 "%lld\n");