aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/rt2x00/rt2x00debug.c
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2010-07-06 13:05:31 -0400
committerArnd Bergmann <arnd@arndb.de>2010-09-16 04:33:08 -0400
commit2b18ab36cf7e956fb5b5ee12847e94fc66d496f4 (patch)
tree3abdb07b9caa17e902f43cec478a42e8d9ab4990 /drivers/net/wireless/rt2x00/rt2x00debug.c
parentdc880abef75e7c62c9048171f5112500f36a9244 (diff)
net/wireless: use generic_file_llseek in debugfs
The default llseek operation is changing from default_llseek to no_llseek, so all code relying on the current behaviour needs to make that explicit. The wireless driver infrastructure and some of the drivers make use of generated debugfs files, so they cannot be converted by our script that automatically determines the right operation. All these files use debugfs and they typically rely on simple_read_from_buffer, so the best llseek operation here is generic_file_llseek. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Cc: "John W. Linville" <linville@tuxdriver.com> Cc: linux-wireless@vger.kernel.org Cc: netdev@vger.kernel.org
Diffstat (limited to 'drivers/net/wireless/rt2x00/rt2x00debug.c')
-rw-r--r--drivers/net/wireless/rt2x00/rt2x00debug.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/rt2x00/rt2x00debug.c b/drivers/net/wireless/rt2x00/rt2x00debug.c
index b0498e7e7aa..7d6f19a2805 100644
--- a/drivers/net/wireless/rt2x00/rt2x00debug.c
+++ b/drivers/net/wireless/rt2x00/rt2x00debug.c
@@ -509,6 +509,7 @@ static const struct file_operations rt2x00debug_fop_##__name = {\
509 .write = rt2x00debug_write_##__name, \ 509 .write = rt2x00debug_write_##__name, \
510 .open = rt2x00debug_file_open, \ 510 .open = rt2x00debug_file_open, \
511 .release = rt2x00debug_file_release, \ 511 .release = rt2x00debug_file_release, \
512 .llseek = generic_file_llseek, \
512}; 513};
513 514
514RT2X00DEBUGFS_OPS(csr, "0x%.8x\n", u32); 515RT2X00DEBUGFS_OPS(csr, "0x%.8x\n", u32);