Skip to content

Commit d3970f0

Browse files
Robert Richterdjbw
authored andcommitted
cxl/core/regs: Rename phys_addr in cxl_map_component_regs()
Trivial change that renames variable phys_addr in cxl_map_component_regs() to shorten its length to keep the 80 char size limit for the line and also for consistency between the different paths. Signed-off-by: Terry Bowman <terry.bowman@amd.com> Signed-off-by: Robert Richter <rrichter@amd.com> Reviewed-by: Dave Jiang <dave.jiang@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/20231018171713.1883517-20-rrichter@amd.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
1 parent b7e9392 commit d3970f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/cxl/core/regs.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -216,16 +216,16 @@ int cxl_map_component_regs(const struct cxl_register_map *map,
216216

217217
for (i = 0; i < ARRAY_SIZE(mapinfo); i++) {
218218
struct mapinfo *mi = &mapinfo[i];
219-
resource_size_t phys_addr;
219+
resource_size_t addr;
220220
resource_size_t length;
221221

222222
if (!mi->rmap->valid)
223223
continue;
224224
if (!test_bit(mi->rmap->id, &map_mask))
225225
continue;
226-
phys_addr = map->resource + mi->rmap->offset;
226+
addr = map->resource + mi->rmap->offset;
227227
length = mi->rmap->size;
228-
*(mi->addr) = devm_cxl_iomap_block(host, phys_addr, length);
228+
*(mi->addr) = devm_cxl_iomap_block(host, addr, length);
229229
if (!*(mi->addr))
230230
return -ENOMEM;
231231
}

0 commit comments

Comments
 (0)