Received: by 10.223.164.202 with SMTP id h10csp2836221wrb; Tue, 28 Nov 2017 02:03:29 -0800 (PST) X-Google-Smtp-Source: AGs4zMY5qrraYZtYDs5kBlpyxGpnnhHlTu/L78xO4HCPQakCOk05F67Np7Cdku1kzzqO8rFg2Jsb X-Received: by 10.159.197.67 with SMTP id d3mr41877996plo.409.1511863409798; Tue, 28 Nov 2017 02:03:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511863409; cv=none; d=google.com; s=arc-20160816; b=CtEj+7MiZUbFtwfiLylMsYsi+HhKBvNuOFCapPRk5G1ehQMTtCdxMHEvYJW67D3hEL RMRGrU25bgGRSDXlBu3T0BRoWSXRrV+DPCCMojYNWpU6RN126LtoyqE/NK4hpvS5EM8w fFLr9r6lX+ziQJNfOQoQXVWWlYe10wdScKaJh0h27nS9KIZwfwEaiXrc8b/Y550efWPl a/F5IFlyBZmUanINvMocROaW31oEEDFfimEdSACKTVUfJtUtXLt57vJ2uQ9mPfdaShHw JrIlh78y/M50Cw9KCMUotWIBKrcrwmhrspdJOU1hVyLc2CL4h3eeEkQnkLGxAKDySreX bbYw== 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=hQserAKRuVQDk8XczXE/pDbvJP9VM5CgEbVp6bVnmR4=; b=zVZo9h1gjlT04Xxg/s+w+jgNG0A0ZZjGQEHi9lvHxNdhD5qezwCkuDMvN+pwF8oxz8 hED0pzsbXfwuIv2D6YFLahL9dPt+3GNly476fWFevTu21MjbRQASXtE1Q2Q8Jv/mIIte fkEF80ZxMfx4EJ/AfUaSoDhdFYc4GYC2JKws0reMZNaJvvKqtCcJz+kVfL4j7Pby7/9e FKUUOQw1G18XtRZubhQxsLIx7kPZhHJlQNVh9aY5LglJhQF6pempW8SfFDn1leZCEKsR ebbGyRNf8qTEu/qEV8BztAy+mqmJt5xWqSnC1MX/BzaKfi95X8/Vqh0Oxhh/iKbz9kup VxpA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UvMg8Nyv; 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.18; Tue, 28 Nov 2017 02:03:29 -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=UvMg8Nyv; 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 S1752163AbdK1KCV (ORCPT + 78 others); Tue, 28 Nov 2017 05:02:21 -0500 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34626 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751133AbdK1KCS (ORCPT ); Tue, 28 Nov 2017 05:02:18 -0500 Received: by mail-pf0-f194.google.com with SMTP id k24so8976839pfb.1; Tue, 28 Nov 2017 02:02:18 -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=hQserAKRuVQDk8XczXE/pDbvJP9VM5CgEbVp6bVnmR4=; b=UvMg8NyvihV0bCJoxuAIK3T17Js9h+RUNHsxLgqsoj/juURepC+rjq6LsuI3ILeAMm m3CTvND6iofaeJHn5jv/SC0WAMKEniQV16JdHLCbKnMjPJO3HwxyGeGXxgbv/vCxLYLC Z13wSgu0LTzGpU5NIryPeB0afEuT93pEAFszxYsudKnS3VTsmxA2o+8BZY6e4kH/91FO O0WG+5fwVRCtlelBKLz1uS1TOuU6ahO+9jL29oVkJ31Fl+lCXqL0mw1+31xplAqmNaYx 6W2Ns0SSQpsnoZu/khmgqrK7HO2JTB+Io+6lqALv5Q2Nm3j5nR9CRhitIhgoWxyvuYWO uZyA== 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=hQserAKRuVQDk8XczXE/pDbvJP9VM5CgEbVp6bVnmR4=; b=S9EJ9K/3f2Qq94M+HPz0q33IAaSclg+b2Zuf11eFDy/HRcdAE5T9dO5pbO3pKSjKfO Qn6EaNp3/Us0O2vDLqLjvs1rKmcmxUcF6hmjAGtQqV7jXZDGaj9accaNyxr+2q4ojGT5 ttoFq+QsrN+rLzDFtAL2fVI5S1TBR4T9U3NMy9yvSKlA1QFXgO9Icz1/9hG1zI4H/HoD s/3/rD03FrMjYZB22z60eKnA0G03SNpOf9K4qbMQxUYjawh9oNajCJxmL6ChLWFcg7f5 t47sxYrOcXqf3yHuXkwaTO3ilyzUBpYENY3jo3z03LjKb8vuqYbv46FSTbEiw6bau+Ra PtCQ== X-Gm-Message-State: AJaThX7MEDO9f+d/0EtQXWXH0yJxgcFodN+4/2vRCH/z2OBGjE5lTbqf YTxovt0PGG2hrVv6hiktXinfwA== X-Received: by 10.101.100.77 with SMTP id s13mr39798953pgv.15.1511863337799; Tue, 28 Nov 2017 02:02:17 -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.14 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 28 Nov 2017 02:02:17 -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 1/2] ACPI / PMIC: constify platform_device_id Date: Tue, 28 Nov 2017 15:31:50 +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_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" }, {}, }; -- 1.9.1 From 1585375848857878399@xxx Wed Nov 29 05:10:28 +0000 2017 X-GM-THRID: 1585316485511785462 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread