IB/hfi1: Use kernel default llseek for ui device
authorDean Luick <dean.luick@intel.com>
Fri, 22 Apr 2016 18:17:03 +0000 (11:17 -0700)
committerDoug Ledford <dledford@redhat.com>
Thu, 28 Apr 2016 16:00:39 +0000 (12:00 -0400)
commit7723d8c2445c4dfa91f8df42703b56f8ade59af7
tree268b6729f7f3aeece5e00cf96addc9009c56b73b
parent94158442eb0c66bbb0b733999e108fa26a7673ef
IB/hfi1: Use kernel default llseek for ui device

The ui device llseek had a mistake with SEEK_END and did
not fully follow seek semantics.  Correct all this by
using a kernel supplied function for fixed size devices.

Cc: Al Viro <viro@ZenIV.linux.org.uk>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Dean Luick <dean.luick@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/staging/rdma/hfi1/file_ops.c