Received: by 10.223.164.202 with SMTP id h10csp2836860wrb; Tue, 28 Nov 2017 02:04:08 -0800 (PST) X-Google-Smtp-Source: AGs4zMZwOJn7KfrctLTgSJPKWa+kGbpDBT5YdkzzIsOXdBmIpPd6VqFY+V0IjNIGMo7s9JeMrbtr X-Received: by 10.101.93.79 with SMTP id e15mr12647914pgt.157.1511863448200; Tue, 28 Nov 2017 02:04:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511863448; cv=none; d=google.com; s=arc-20160816; b=JeGxPrvTc9sruU5N657oB3W+Qc1pmPwNwoEw2GgvlWvT3dspiwhcb6RM8HcLG9nSti VNFsn4mje5u1K/nS/91wrFRN3JoKz6D7q98GGkU3wk2bjoVNNFWjd1PgJh+EpYdCoTxV x8ViKM3hCYw0/ogusjUNxIU+1af0WRzrMSDlLS0l5X+XoEHxMYb+cCmgFJpnynqBhYiM E6HR/bkj7TbEYGWZ/l5xbAYzebohcoxV59cXb+oCiaKUhlOPOsmB2zRs3R3DN4gr1eMU 2u0DwL9XzmnqmhD+IIJ0NfXjsz6wLanTr0z/z7lMs3WNnkm4EunWCBRBNQiZcs/biK3N K4cw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=8KifKwzx1hHb+o5du+hW+KGmuBr0JgVOi4yCOeoKXls=; b=EV5CxwvtWo0qlhgPOHtFN9SxXbFtoos4meG1I2IVAe0poGEQdLjSKbsdvmhaPtRYuC ykx+TQxpqCew/Dztkyo4h3+U4OS8Oq7OZ/nz+Xrg9Z/EfTNhi1SJc3LqXLgz7zH4Fc+2 odKVhlrV3O3YcuIAvT5Qx+uNo5I+63uYiICt85DgxOG+/jHnbNnqr8ybchwnlrCkMgZO cCKI9qWLsT/l0rJ07WSE0ORnOvEAG1Um2Iwp4eqxk3o81C/oDEcAe7S4XgHrj//+rtLo +EYe04oSbAZTs8W0WWIuXP2Jw4q7JlDInYfAElwx6N3zdYVmbCTPfqk24+HCWxalEIbT DMDg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k6p74ODi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x10si24044131plv.384.2017.11.28.02.03.56; Tue, 28 Nov 2017 02:04:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=k6p74ODi; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752454AbdK1KC1 (ORCPT + 78 others); Tue, 28 Nov 2017 05:02:27 -0500 Received: from mail-pf0-f196.google.com ([209.85.192.196]:39331 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbdK1KCV (ORCPT ); Tue, 28 Nov 2017 05:02:21 -0500 Received: by mail-pf0-f196.google.com with SMTP id l24so18738125pfj.6; Tue, 28 Nov 2017 02:02:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :in-reply-to:references; bh=8KifKwzx1hHb+o5du+hW+KGmuBr0JgVOi4yCOeoKXls=; b=k6p74ODizaS7Hd6p0EnLKu5IH99x+vlfZI4dFLEy37YaGPWXPlTI4iLQeLJ1k80f+z hpwfiqtA/YKOZiGGn4cyiZ5GfUZl3fpn7rCNTNKAPqUazBCBuqlrSN1GdyKzUDbDEVQJ mpBMFF//9pwN303afHkds2GnD2WZTILB8nFGlaVaZthd/UtHzTzujPAXmS9onWyf3c6I hzDPFXAChjddYSQtfBp5T8M13wDsPQ3KN47z8YAihzGy7vbrf7hSNpQg36NIKL0/owWd yln2xDrHidRHHywnfx5Z8AkJ0BZ9gLBjKmGEagIv/Ax4OdFDtbE6GmDrF421uH11pZyQ py5Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:in-reply-to:references; bh=8KifKwzx1hHb+o5du+hW+KGmuBr0JgVOi4yCOeoKXls=; b=HE+wYvQuF4D7Gq5aAM0A7+rCFrmx/3y8jC4EVYzCeWSrMrnLbdc5BEEap4EJCDkiYT kecJ2mimSw8BqWQp7vUqLZitFb1uPtn8PsyCQkrIzdwQ4DJFsWPwApFoThdgneCzfbzB Pe9H0iumL3rVt7cdkfb0eGKljH0+QydR+UGafCQGSv+LLdmfL8TyvCoOjRNLBRhfF/Gc y+ysUlmPtirTmiZFHfjtUoWmwBLOEuaRszo89+P05iO0/Q6d55LfLrXQgWFzeKYmh4Sa lRgYsMwfjj1aNjdQTz3pL+I4Ec+/c6+4Y8DHvaVYrXiT1Qzykpl05QWHyRxxv0FNP88W 42KA== X-Gm-Message-State: AJaThX5IPtfhfI14wPBrnqZQG58jdxy4TFfkl4B5gN4dS6q0f7brQl7F slQSpNW3630F1qcloZ8La0xxPA== X-Received: by 10.98.155.22 with SMTP id r22mr39643884pfd.96.1511863341266; Tue, 28 Nov 2017 02:02:21 -0800 (PST) Received: from symbol-HP-Z420-Workstation.zebra.lan ([223.31.70.102]) by smtp.googlemail.com with ESMTPSA id j3sm9010753pfh.142.2017.11.28.02.02.18 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Nov 2017 02:02:20 -0800 (PST) From: Arvind Yadav To: rjw@rjwysocki.net, lenb@kernel.org, andy@infradead.org, mika.westerberg@linux.intel.com Cc: linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org Subject: [PATCH 2/2] ACPI / PMIC: Constify platform_device_id Date: Tue, 28 Nov 2017 15:31:51 +0530 Message-Id: X-Mailer: git-send-email 1.9.1 In-Reply-To: References: In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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_bxtwc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/acpi/pmic/intel_pmic_bxtwc.c b/drivers/acpi/pmic/intel_pmic_bxtwc.c index 90011aa..2012d1d 100644 --- a/drivers/acpi/pmic/intel_pmic_bxtwc.c +++ b/drivers/acpi/pmic/intel_pmic_bxtwc.c @@ -400,7 +400,7 @@ static int intel_bxtwc_pmic_opregion_probe(struct platform_device *pdev) &intel_bxtwc_pmic_opregion_data); } -static struct platform_device_id bxt_wc_opregion_id_table[] = { +static const struct platform_device_id bxt_wc_opregion_id_table[] = { { .name = "bxt_wcove_region" }, {}, }; -- 1.9.1 From 1585307846333638693@xxx Tue Nov 28 11:09:36 +0000 2017 X-GM-THRID: 1585307846333638693 X-Gmail-Labels: Inbox,Category Promotions,HistoricalUnread