]> git.itanic.dy.fi Git - linux-stable/commit
cxl/regs: Clarify when a 'struct cxl_register_map' is input vs output
authorDan Williams <dan.j.williams@intel.com>
Thu, 15 Jun 2023 01:29:41 +0000 (18:29 -0700)
committerDan Williams <dan.j.williams@intel.com>
Sun, 25 Jun 2023 21:31:08 +0000 (14:31 -0700)
commit688baac1097d30a51d6469efdc8707fdac80eab6
tree5dac3393840e97ad38f0312e4639f65e80a81e95
parent9561de3a55bed6bdd44a12820ba81ec416e705a7
cxl/regs: Clarify when a 'struct cxl_register_map' is input vs output

The @map parameter to cxl_probe_X_registers() is filled in with the
mapping parameters of the register block. The @map parameter to
cxl_map_X_registers() only reads that information to perform the
mapping. Mark @map const for cxl_map_X_registers() to clarify that it is
only an input to those helpers.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/168679258103.3436160.4941603739448763855.stgit@dwillia2-xfh.jf.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/regs.c
drivers/cxl/cxl.h