bus: fsl-mc: Constify fsl_mc_device_match()
authorZijun Hu <quic_zijuhu@quicinc.com>
Tue, 24 Dec 2024 13:05:02 +0000 (21:05 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Jan 2025 10:19:35 +0000 (11:19 +0100)
commite9451ab968bb34f2b37fdd91c376d5f36c4745ee
tree955bbc283d00de28b8be94e9a771266c0273dd2f
parent064aa528bbc5da6530283a761fbb905d52b04916
bus: fsl-mc: Constify fsl_mc_device_match()

fsl_mc_device_match() does not modify caller's inputs.

To prepare for constifying API device_find_child() later.

Constify this comparison function by simply changing its
parameter types to const pointer.

Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: Zijun Hu <quic_zijuhu@quicinc.com>
Link: https://lore.kernel.org/r/20241224-const_dfc_done-v5-3-6623037414d4@quicinc.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/bus/fsl-mc/dprc-driver.c