From: Eva Rachel Retuya Date: Thu, 22 Sep 2016 15:33:33 +0000 (+0800) Subject: staging: greybus: arche-apb-ctrl: declare struct of_device_id as const X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5c925fe2a496da4849f1f874b9fa54cad7f2386c;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git staging: greybus: arche-apb-ctrl: declare struct of_device_id as const Declare the 'arche_apb_ctrl_of_match' array as const. This array is only stored in the .of_match_table field of a device_driver structure, which is declared as const. This addresses the checkpatch warning: WARNING: struct of_device_id should be normally const Signed-off-by: Eva Rachel Retuya Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/arche-apb-ctrl.c b/drivers/staging/greybus/arche-apb-ctrl.c index 59d9d422cf04..70323aa11f24 100644 --- a/drivers/staging/greybus/arche-apb-ctrl.c +++ b/drivers/staging/greybus/arche-apb-ctrl.c @@ -495,7 +495,7 @@ static void arche_apb_ctrl_shutdown(struct platform_device *pdev) static SIMPLE_DEV_PM_OPS(arche_apb_ctrl_pm_ops, arche_apb_ctrl_suspend, arche_apb_ctrl_resume); -static struct of_device_id arche_apb_ctrl_of_match[] = { +static const struct of_device_id arche_apb_ctrl_of_match[] = { { .compatible = "usbffff,2", }, { }, };