[PATCH 14/27] cxl/pmem: Make device_find_child()'s match function take a const pointer

From: Zijun Hu
Date: Sat Aug 10 2024 - 22:28:20 EST


From: Zijun Hu <quic_zijuhu@xxxxxxxxxxx>

In order to adapt for constified device_find_child(), make
match_nvdimm_bridge() as its match function take a const pointer.

Signed-off-by: Zijun Hu <quic_zijuhu@xxxxxxxxxxx>
---
drivers/cxl/core/pmem.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/cxl/core/pmem.c b/drivers/cxl/core/pmem.c
index c00f3a933164..015759595aaa 100644
--- a/drivers/cxl/core/pmem.c
+++ b/drivers/cxl/core/pmem.c
@@ -57,7 +57,7 @@ bool is_cxl_nvdimm_bridge(struct device *dev)
}
EXPORT_SYMBOL_NS_GPL(is_cxl_nvdimm_bridge, CXL);

-static int match_nvdimm_bridge(struct device *dev, void *data)
+static int match_nvdimm_bridge(struct device *dev, const void *data)
{
return is_cxl_nvdimm_bridge(dev);
}

--
2.34.1