fpga: Fix of_fpga_mgr_get() reference in fpga_mgr_lock() docs
PATCH 1/1 fpga: Fix of_fpga_mgr_get() reference in fpga_mgr_lock() docs
The fpga_mgr_lock() comment lists of_fpga_mgr_put() as a source of a manager pointer. The helper which obtains that pointer is of_fpga_mgr_get(). Correct the reference.
Fixes ebf877a51ad7 ("fpga: mgr: separate getting/locking FPGA manager")
Assisted-by LLM
Signed-off-by Karl Mehltretter <[email protected]>
--- drivers/fpga/fpga-mgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/fpga/fpga-mgr.c +1 -1
@@ -744,7 +744,7 @@ EXPORT_SYMBOL_GPL(fpga_mgr_put);* @mgr: fpga manager * * Given a pointer to FPGA Manager (from fpga_mgr_get() or -* of_fpga_mgr_put()) attempt to get the mutex. The user should call +* of_fpga_mgr_get()) attempt to get the mutex. The user should call * fpga_mgr_lock() and verify that it returns 0 before attempting to * program the FPGA. Likewise, the user should call fpga_mgr_unlock * when done programming the FPGA.
Signature · 1 line
2.39.5 (Apple Git-154)
Quoted 7 lines · Karl Mehltretter
The
fpga_mgr_lock()comment listsof_fpga_mgr_put()as a source of a manager pointer. The helper which obtains that pointer isof_fpga_mgr_get(). Correct the reference.Fixes ebf877a51ad7 ("fpga: mgr: separate getting/locking FPGA manager")Assisted-by LLMSigned-off-by Karl Mehltretter <[email protected]>
Reviewed-by Xu Yilun <[email protected]>
Applied to for-next