cxl/pci: Drop the parameter is_port of cxl_gpf_get_dvsec()
authorLi Ming <ming.li@zohomail.com>
Sun, 23 Mar 2025 09:31:10 +0000 (17:31 +0800)
committerDave Jiang <dave.jiang@intel.com>
Wed, 9 Apr 2025 19:48:18 +0000 (12:48 -0700)
commit36aace15d9bdcfe6f03e078915067e89719478f5
treebc7f7fd47db877d0795e3db05284963a961498e3
parent6af941db6a60a27209bdb2da1a3a780574d617fe
cxl/pci: Drop the parameter is_port of cxl_gpf_get_dvsec()

The first parameter of cxl_gpf_get_dvsec() is a struct device, can be
used to distinguish if the device is a cxl dport or a cxl pci device by
checking the PCIe type of it, so the parameter is_port is unnecessary
to cxl_gpf_get_dvsec(), using parameter struct device is enough.

Signed-off-by: Li Ming <ming.li@zohomail.com>
Reviewed-by: Davidlohr Bueso <dave@stgolabs.net>
Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Reviewed-by: Dan Williams <dan.j.williams@intel.com>
Tested-by: Davidlohr Bueso <dave@stgolabs.net>
Link: https://patch.msgid.link/20250323093110.233040-4-ming.li@zohomail.com
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
drivers/cxl/core/pci.c
drivers/cxl/cxl.h
drivers/cxl/pmem.c