Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752513AbdHMLXj (ORCPT ); Sun, 13 Aug 2017 07:23:39 -0400 Received: from mail-pg0-f66.google.com ([74.125.83.66]:36055 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751420AbdHMLXi (ORCPT ); Sun, 13 Aug 2017 07:23:38 -0400 From: Arvind Yadav To: rjw@rjwysocki.net, lenb@kernel.org, andriy.shevchenko@linux.intel.com, hdegoede@redhat.com Cc: linux-kernel@vger.kernel.org Subject: [PATCH] ACPI / PMIC: constify platform_device_id Date: Sun, 13 Aug 2017 16:53:28 +0530 Message-Id: <4b568fafd30b850348ea390fcd0cb1dae2830c2b.1502623056.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 905 Lines: 25 platform_device_id are not supposed to change at runtime. All functions working with platform_device_id provided by work with const platform_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/acpi/pmic/intel_pmic_chtwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/pmic/intel_pmic_chtwc.c b/drivers/acpi/pmic/intel_pmic_chtwc.c index 85636d7..813b829 100644 --- a/drivers/acpi/pmic/intel_pmic_chtwc.c +++ b/drivers/acpi/pmic/intel_pmic_chtwc.c @@ -260,7 +260,7 @@ static int intel_cht_wc_pmic_opregion_probe(struct platform_device *pdev) &intel_cht_wc_pmic_opregion_data); } -static struct platform_device_id cht_wc_opregion_id_table[] = { +static const struct platform_device_id cht_wc_opregion_id_table[] = { { .name = "cht_wcove_region" }, {}, }; -- 2.7.4