IB/hfi1: Refactor get_ctxt_info
authorMichael J. Ruhl <michael.j.ruhl@intel.com>
Tue, 26 Sep 2017 14:03:57 +0000 (07:03 -0700)
committerDoug Ledford <dledford@redhat.com>
Fri, 29 Sep 2017 15:08:05 +0000 (11:08 -0400)
commitff1a5582c9516b324394fbaaf24772d1b6bd9c15
treec8c7bce6cfe4ec0cb92ebe630a494291f90eaa7d
parentddebe9810cb0d5f28e101125bfa249a826bc0536
IB/hfi1: Refactor get_ctxt_info

The IOCTL is a bit unwieldy.  Refactor to a common pattern.

Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Signed-off-by: Michael J. Ruhl <michael.j.ruhl@intel.com>
Signed-off-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/hfi1/file_ops.c