mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-05-02 18:17:50 -04:00
wifi: mac80211: convert debugfs files to short fops
Given the large size of the regular struct file_operations, save a lot of space with the newly added short fops for debugfs. Link: https://patch.msgid.link/20241022151838.2f6de3ea3ecc.I45657e6a8415d796ec95c95becc9efb377ee3be6@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
@@ -221,10 +221,9 @@ static ssize_t ieee80211_if_fmt_##name( \
|
||||
}
|
||||
|
||||
#define _IEEE80211_IF_FILE_OPS(name, _read, _write) \
|
||||
static const struct file_operations name##_ops = { \
|
||||
static const struct debugfs_short_fops name##_ops = { \
|
||||
.read = (_read), \
|
||||
.write = (_write), \
|
||||
.open = simple_open, \
|
||||
.llseek = generic_file_llseek, \
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user