wireless: Use octal not symbolic permissions
Prefer the direct use of octal for permissions. Done with checkpatch -f --types=SYMBOLIC_PERMS --fix-inplace and some typing. Miscellanea: o Whitespace neatening around these conversions. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
@@ -187,21 +187,21 @@ static const struct carl9170_debugfs_fops carl_debugfs_##name ##_ops = {\
|
||||
|
||||
#define DEBUGFS_DECLARE_RO_FILE(name, _read_bufsize) \
|
||||
DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \
|
||||
NULL, _read_bufsize, S_IRUSR)
|
||||
NULL, _read_bufsize, 0400)
|
||||
|
||||
#define DEBUGFS_DECLARE_WO_FILE(name) \
|
||||
DEBUGFS_DECLARE_FILE(name, NULL, carl9170_debugfs_##name ##_write,\
|
||||
0, S_IWUSR)
|
||||
0, 0200)
|
||||
|
||||
#define DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize) \
|
||||
DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \
|
||||
carl9170_debugfs_##name ##_write, \
|
||||
_read_bufsize, S_IRUSR | S_IWUSR)
|
||||
_read_bufsize, 0600)
|
||||
|
||||
#define __DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize, _dstate) \
|
||||
__DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \
|
||||
carl9170_debugfs_##name ##_write, \
|
||||
_read_bufsize, S_IRUSR | S_IWUSR, _dstate)
|
||||
_read_bufsize, 0600, _dstate)
|
||||
|
||||
#define DEBUGFS_READONLY_FILE(name, _read_bufsize, fmt, value...) \
|
||||
static char *carl9170_debugfs_ ##name ## _read(struct ar9170 *ar, \
|
||||
|
Reference in New Issue
Block a user