Commit b699b71d authored by Pichugin Dmitry's avatar Pichugin Dmitry Committed by Johannes Berg

cfg80211 debugfs: Cleanup some checkpatch issues

This fixes the checkpatch.pl warnings:
* Macros should not use a trailing semicolon.
* Spaces required around that '='.
* Symbolic permissions 'S_IRUGO' are not preferred.
Signed-off-by: default avatarDmitriy Pichugin <smokeman85@gmail.com>
Signed-off-by: default avatarJohannes Berg <johannes.berg@intel.com>
parent bddb2afc
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
static ssize_t name## _read(struct file *file, char __user *userbuf, \ static ssize_t name## _read(struct file *file, char __user *userbuf, \
size_t count, loff_t *ppos) \ size_t count, loff_t *ppos) \
{ \ { \
struct wiphy *wiphy= file->private_data; \ struct wiphy *wiphy = file->private_data; \
char buf[buflen]; \ char buf[buflen]; \
int res; \ int res; \
\ \
...@@ -29,14 +29,14 @@ static const struct file_operations name## _ops = { \ ...@@ -29,14 +29,14 @@ static const struct file_operations name## _ops = { \
.read = name## _read, \ .read = name## _read, \
.open = simple_open, \ .open = simple_open, \
.llseek = generic_file_llseek, \ .llseek = generic_file_llseek, \
}; }
DEBUGFS_READONLY_FILE(rts_threshold, 20, "%d", DEBUGFS_READONLY_FILE(rts_threshold, 20, "%d",
wiphy->rts_threshold) wiphy->rts_threshold);
DEBUGFS_READONLY_FILE(fragmentation_threshold, 20, "%d", DEBUGFS_READONLY_FILE(fragmentation_threshold, 20, "%d",
wiphy->frag_threshold); wiphy->frag_threshold);
DEBUGFS_READONLY_FILE(short_retry_limit, 20, "%d", DEBUGFS_READONLY_FILE(short_retry_limit, 20, "%d",
wiphy->retry_short) wiphy->retry_short);
DEBUGFS_READONLY_FILE(long_retry_limit, 20, "%d", DEBUGFS_READONLY_FILE(long_retry_limit, 20, "%d",
wiphy->retry_long); wiphy->retry_long);
...@@ -103,7 +103,7 @@ static const struct file_operations ht40allow_map_ops = { ...@@ -103,7 +103,7 @@ static const struct file_operations ht40allow_map_ops = {
}; };
#define DEBUGFS_ADD(name) \ #define DEBUGFS_ADD(name) \
debugfs_create_file(#name, S_IRUGO, phyd, &rdev->wiphy, &name## _ops); debugfs_create_file(#name, 0444, phyd, &rdev->wiphy, &name## _ops)
void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev) void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment