[RAMEN9610-10521] IB/hfi1: convert to debugfs_file_get() and -put()
authorNicolai Stange <nicstange@gmail.com>
Mon, 30 Oct 2017 23:15:51 +0000 (00:15 +0100)
committerCosmin Tanislav <demonsingur@gmail.com>
Mon, 22 Apr 2024 17:23:12 +0000 (20:23 +0300)
commit9cae7b42a9741943fb1e3f8fe429ccaa42b72fda
treee9d53c3651b7c95f232acbcf6e547162ba44f22e
parente7a81c6088e7685acb269f0c8e48b92a855965d5
[RAMEN9610-10521] IB/hfi1: convert to debugfs_file_get() and -put()

Convert all calls to the now obsolete debugfs_use_file_start() and
debugfs_use_file_finish() to the new debugfs_file_get() and
debugfs_file_put() API.

Change-Id: I1bc9155930247c8b1c7d694dc93787f11242f364
Fixes: 49d200deaa68 ("debugfs: prevent access to removed files' private data")
Signed-off-by: Nicolai Stange <nicstange@gmail.com>
Reviewed-by: Dennis Dalessandro <dennis.dalessandro@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/infiniband/hw/hfi1/debugfs.c