diff options
author | Dan Williams <dan.j.williams@intel.com> | 2022-03-14 18:22:44 -0700 |
---|---|---|
committer | Dan Williams <dan.j.williams@intel.com> | 2022-04-12 19:11:58 -0700 |
commit | 31e624a77e748e4ab7d5c9c3ddc46ba7735bd75e (patch) | |
tree | 1f97c97b2b7e9707dc3afdbdb780a0e5a10e0a8c /tools/testing | |
parent | 36bfc6ad508af38f212cf5a38147d867fb3f80a8 (diff) | |
download | linux-stable-31e624a77e748e4ab7d5c9c3ddc46ba7735bd75e.tar.gz linux-stable-31e624a77e748e4ab7d5c9c3ddc46ba7735bd75e.tar.bz2 linux-stable-31e624a77e748e4ab7d5c9c3ddc46ba7735bd75e.zip |
cxl/mem: Rename cxl_dvsec_decode_init() to cxl_hdm_decode_init()
cxl_dvsec_decode_init() is tasked with checking whether legacy DVSEC
range based decode is in effect, or whether HDM can be enabled / already
is enabled. As such it either succeeds or fails and that result is the
return value. The @do_hdm_init variable is misleading in the case where
HDM operation is already found to be active, so just call it @retval.
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://lore.kernel.org/r/164730736435.3806189.2537160791687837469.stgit@dwillia2-desk3.amr.corp.intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'tools/testing')
-rw-r--r-- | tools/testing/cxl/mock_mem.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/cxl/mock_mem.c b/tools/testing/cxl/mock_mem.c index d1dec5845139..69946f678cfa 100644 --- a/tools/testing/cxl/mock_mem.c +++ b/tools/testing/cxl/mock_mem.c @@ -4,7 +4,7 @@ #include <linux/types.h> struct cxl_dev_state; -bool cxl_dvsec_decode_init(struct cxl_dev_state *cxlds) +bool cxl_hdm_decode_init(struct cxl_dev_state *cxlds) { return true; } |