USB: ehci-msm: Make of_device_id array const

This change “USB: ehci-msm: Make of_device_id array const” (commit 3587fb3) in Linux kernel is authored by Jingoo Han <jg1.han [at] samsung.com> on Wed Jun 18 13:33:17 2014 +0900.

Description of "USB: ehci-msm: Make of_device_id array const"

The change “USB: ehci-msm: Make of_device_id array const” introduces changes as follows.

USB: ehci-msm: Make of_device_id array const

Make of_device_id array const, because all OF functions handle
it as const.

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

Linux kernel releases containing commit 3587fb3

The Linux kernel releases containing this commit are as follows.

Linux kernel code changes from "USB: ehci-msm: Make of_device_id array const"

There are 2 lines of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/usb/host/ehci-msm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
 
diff --git a/drivers/usb/host/ehci-msm.c b/drivers/usb/host/ehci-msm.c
index 982c09bebe0f..934b39d5e44a 100644
--- a/drivers/usb/host/ehci-msm.c
+++ b/drivers/usb/host/ehci-msm.c
@@ -190,7 +190,7 @@ static const struct dev_pm_ops ehci_msm_dev_pm_ops = {
 	.resume          = ehci_msm_pm_resume,
 };
 
-static struct of_device_id msm_ehci_dt_match[] = {
+static const struct of_device_id msm_ehci_dt_match[] = {
 	{ .compatible = "qcom,ehci-host", },
 	{}
 };

The commit for this change in Linux stable tree is 3587fb3 (patch).

Last modified: 2020/02/10