staging: make new character devices nonseekable
authorArnd Bergmann <arnd@arndb.de>
Thu, 30 Sep 2010 08:24:07 +0000 (10:24 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 5 Oct 2010 15:50:14 +0000 (08:50 -0700)
commitd16044cf8ce0ff6384cd80eb0abaa2ba57b19a5e
treeac95dc8df12c484d2ff36afccb3e9bd654c05e11
parentcff55f50b882b197a52c4cf0108a43c615d1fdba
staging: make new character devices nonseekable

As a preparation for changing the default behaviour of llseek to no_llseek,
every file_operations structure should have a .llseek operation.

There are three new instances in staging now, which can all be changed
into no_llseek explicitly since the devices do not need to seek.

Add nonseekable_open where appropriate, to prevent pread/pwrite as well.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/bcm/Bcmchar.c
drivers/staging/bcm/InterfaceInit.c
drivers/staging/ft1000/ft1000-usb/ft1000_chdev.c