diff options
| author | Li Ming <ming4.li@intel.com> | 2024-08-30 04:31:37 +0300 |
|---|---|---|
| committer | Dave Jiang <dave.jiang@intel.com> | 2024-09-04 00:49:49 +0300 |
| commit | 7f569e917b7866b6760e2cfc3a9549cabc890071 (patch) | |
| tree | 9f49e3c2fe54c992e7fa4c8c490618ce79fdd580 /drivers/fpga/tests/fpga-bridge-test.c | |
| parent | dd2617ebd2a69c012001a29274557199409eff39 (diff) | |
| download | linux-7f569e917b7866b6760e2cfc3a9549cabc890071.tar.xz | |
cxl/port: Use scoped_guard()/guard() to drop device_lock() for cxl_port
A device_lock() and device_unlock() pair can be replaced by a cleanup
helper scoped_guard() or guard(), that can enhance code readability. In
CXL subsystem, still use device_lock() and device_unlock() pairs for cxl
port resource protection, most of them can be replaced by a
scoped_guard() or a guard() simply.
Suggested-by: Dan Williams <dan.j.williams@intel.com>
Signed-off-by: Li Ming <ming4.li@intel.com>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://patch.msgid.link/20240830013138.2256244-2-ming4.li@intel.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Diffstat (limited to 'drivers/fpga/tests/fpga-bridge-test.c')
0 files changed, 0 insertions, 0 deletions
