diff options
author | Dave Jiang <dave.jiang@intel.com> | 2022-12-05 14:16:07 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-12-05 18:17:16 -0800 |
commit | 83351ddb786b30952485a5c302cd0cffbd62097e (patch) | |
tree | 68c5691584d791bcc72b10fb8e12153544e89676 /drivers/cxl/acpi.c | |
parent | d3cdf4585f2f9122d1165acca40e801c75afa320 (diff) |
cxl: update names for interleave granularity conversion macros
Change names for granularity macros to clearly indicate which
variable is encoded and which is the actual granularity.
granularity == interleave granularity
eig == encoded interleave granularity
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Alison Schofield <alison.schofield@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/167027493237.3124429.8948852388671827664.stgit@djiang5-desk3.ch.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/acpi.c')
-rw-r--r-- | drivers/cxl/acpi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/cxl/acpi.c b/drivers/cxl/acpi.c index f495f3ce45d1..99522e1b3993 100644 --- a/drivers/cxl/acpi.c +++ b/drivers/cxl/acpi.c @@ -86,7 +86,7 @@ static int cxl_parse_cxims(union acpi_subtable_headers *header, void *arg, unsigned int hbig, nr_maps; int rc; - rc = cxl_to_granularity(cxims->hbig, &hbig); + rc = eig_to_granularity(cxims->hbig, &hbig); if (rc) return rc; @@ -224,7 +224,7 @@ static int cxl_parse_cfmws(union acpi_subtable_headers *header, void *arg, rc = cxl_to_ways(cfmws->interleave_ways, &ways); if (rc) return rc; - rc = cxl_to_granularity(cfmws->granularity, &ig); + rc = eig_to_granularity(cfmws->granularity, &ig); if (rc) return rc; for (i = 0; i < ways; i++) |