cxl: Split out combine_coordinates() for common shared usage
authorDave Jiang <dave.jiang@intel.com>
Fri, 8 Mar 2024 21:59:24 +0000 (14:59 -0700)
committerDan Williams <dan.j.williams@intel.com>
Tue, 12 Mar 2024 19:34:11 +0000 (12:34 -0700)
commit032f7b37adff6985e22516053698b77131c2ce96
treecfd679c8f0a157005c8768f1f5845af5d98f8555
parentbd98cbbbf82a3086423865816e1b5ab4bb4b6c60
cxl: Split out combine_coordinates() for common shared usage

Refactor the common code of combining coordinates in order to reduce code.
Create a new function cxl_cooordinates_combine() it combine two 'struct
access_coordinate'.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Tested-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20240308220055.2172956-6-dave.jiang@intel.com
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/cxl/core/cdat.c
drivers/cxl/core/port.c
drivers/cxl/cxl.h