diff options
author | Arnd Bergmann <arnd@arndb.de> | 2010-07-06 19:05:31 +0200 |
---|---|---|
committer | Arnd Bergmann <arnd@arndb.de> | 2010-09-16 10:33:08 +0200 |
commit | 2b18ab36cf7e956fb5b5ee12847e94fc66d496f4 (patch) | |
tree | 3abdb07b9caa17e902f43cec478a42e8d9ab4990 /drivers/net/wireless/b43legacy/debugfs.c | |
parent | dc880abef75e7c62c9048171f5112500f36a9244 (diff) | |
download | op-kernel-dev-2b18ab36cf7e956fb5b5ee12847e94fc66d496f4.zip op-kernel-dev-2b18ab36cf7e956fb5b5ee12847e94fc66d496f4.tar.gz |
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/b43legacy/debugfs.c')
-rw-r--r-- | drivers/net/wireless/b43legacy/debugfs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/b43legacy/debugfs.c b/drivers/net/wireless/b43legacy/debugfs.c index 1f85ac5..f232618 100644 --- a/drivers/net/wireless/b43legacy/debugfs.c +++ b/drivers/net/wireless/b43legacy/debugfs.c @@ -334,6 +334,7 @@ out_unlock: .open = b43legacy_debugfs_open, \ .read = b43legacy_debugfs_read, \ .write = b43legacy_debugfs_write, \ + .llseek = generic_file_llseek, \ }, \ .file_struct_offset = offsetof(struct b43legacy_dfsentry, \ file_##name), \ |