aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/carl9170/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/debug.c')
-rw-r--r--drivers/net/wireless/ath/carl9170/debug.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/net/wireless/ath/carl9170/debug.c b/drivers/net/wireless/ath/carl9170/debug.c
index ec3a64e5d2bb..a9b6dc17e408 100644
--- a/drivers/net/wireless/ath/carl9170/debug.c
+++ b/drivers/net/wireless/ath/carl9170/debug.c
@@ -187,21 +187,21 @@ static const struct carl9170_debugfs_fops carl_debugfs_##name ##_ops = {\
187 187
188#define DEBUGFS_DECLARE_RO_FILE(name, _read_bufsize) \ 188#define DEBUGFS_DECLARE_RO_FILE(name, _read_bufsize) \
189 DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \ 189 DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \
190 NULL, _read_bufsize, S_IRUSR) 190 NULL, _read_bufsize, 0400)
191 191
192#define DEBUGFS_DECLARE_WO_FILE(name) \ 192#define DEBUGFS_DECLARE_WO_FILE(name) \
193 DEBUGFS_DECLARE_FILE(name, NULL, carl9170_debugfs_##name ##_write,\ 193 DEBUGFS_DECLARE_FILE(name, NULL, carl9170_debugfs_##name ##_write,\
194 0, S_IWUSR) 194 0, 0200)
195 195
196#define DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize) \ 196#define DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize) \
197 DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \ 197 DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \
198 carl9170_debugfs_##name ##_write, \ 198 carl9170_debugfs_##name ##_write, \
199 _read_bufsize, S_IRUSR | S_IWUSR) 199 _read_bufsize, 0600)
200 200
201#define __DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize, _dstate) \ 201#define __DEBUGFS_DECLARE_RW_FILE(name, _read_bufsize, _dstate) \
202 __DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \ 202 __DEBUGFS_DECLARE_FILE(name, carl9170_debugfs_##name ##_read, \
203 carl9170_debugfs_##name ##_write, \ 203 carl9170_debugfs_##name ##_write, \
204 _read_bufsize, S_IRUSR | S_IWUSR, _dstate) 204 _read_bufsize, 0600, _dstate)
205 205
206#define DEBUGFS_READONLY_FILE(name, _read_bufsize, fmt, value...) \ 206#define DEBUGFS_READONLY_FILE(name, _read_bufsize, fmt, value...) \
207static char *carl9170_debugfs_ ##name ## _read(struct ar9170 *ar, \ 207static char *carl9170_debugfs_ ##name ## _read(struct ar9170 *ar, \