Skip to content
Commit f2783b8a authored by Robert Richter's avatar Robert Richter Committed by Greg Kroah-Hartman
Browse files

cxl/core/regs: Rename @dev to @host in struct cxl_register_map

[ Upstream commit dd22581f

 ]

The primary role of @dev is to host the mappings for devm operations.
@dev is too ambiguous as a name. I.e. when does @dev refer to the
'struct device *' instance that the registers belong, and when does
@dev refer to the 'struct device *' instance hosting the mapping for
devm operations?

Clarify the role of @dev in cxl_register_map by renaming it to @host.
Also, rename local variables to 'host' where map->host is used.

Signed-off-by: default avatarTerry Bowman <terry.bowman@amd.com>
Signed-off-by: default avatarRobert Richter <rrichter@amd.com>
Reviewed-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Link: https://lore.kernel.org/r/20231018171713.1883517-3-rrichter@amd.com
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
Stable-dep-of: 33d9c987

 ("cxl/port: Fix @host confusion in cxl_dport_setup_regs()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent fb2306ec
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment