]> www.infradead.org Git - users/dwmw2/linux.git/commit
octeontx2-af: Change block parameter to const pointer in get_lf_str_list
authorRiyan Dhiman <riyandhiman14@gmail.com>
Tue, 1 Oct 2024 11:05:43 +0000 (16:35 +0530)
committerJakub Kicinski <kuba@kernel.org>
Fri, 4 Oct 2024 18:12:28 +0000 (11:12 -0700)
commitc55ff46aeebed1704a9a6861777b799f15ce594d
treeab23033cf9a2072dead675ed9fc2b7de55de5d6b
parent8389cdb5c192bad690caf64a0746216c27f0c9b8
octeontx2-af: Change block parameter to const pointer in get_lf_str_list

Convert struct rvu_block block to const struct rvu_block *block in
get_lf_str_list() function parameter. This improves efficiency by
avoiding structure copying and reflects the function's read-only
access to block.

Signed-off-by: Riyan Dhiman <riyandhiman14@gmail.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://patch.msgid.link/20241001110542.5404-2-riyandhiman14@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c