From patchwork Sun Aug 13 09:40:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9897641 X-Patchwork-Delegate: rjw@sisk.pl Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 277B960244 for ; Sun, 13 Aug 2017 09:40:24 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 15D1828722 for ; Sun, 13 Aug 2017 09:40:24 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 0A88028727; Sun, 13 Aug 2017 09:40:24 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 9897928722 for ; Sun, 13 Aug 2017 09:40:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750970AbdHMJkV (ORCPT ); Sun, 13 Aug 2017 05:40:21 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:36819 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750955AbdHMJkU (ORCPT ); Sun, 13 Aug 2017 05:40:20 -0400 Received: by mail-pg0-f67.google.com with SMTP id y129so6441388pgy.3; Sun, 13 Aug 2017 02:40:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GYymcXfWags5IrSlzFnDdZ07+hOEHmpniYSJu0HwQ2Y=; b=ap9XyMM2OXYBYhx7yYrjyVSlYCygGLhbnxnWTHY+3XLn6J2JOHADjp87yWksTOVIjE Lu4E2mLTZ3Z9CnKboV8P0UZSrffE6AbOZ7FYIDoBiFwFHo0UPTskqMJYH7vdDz6Axt99 q5Ov8Fe8UfE07CJQg+uFxvgHYiEup2BglZ53FlNugYNGSozW5PbipGnccU8I5rRngFHA EgKESgAkrkOt2R7UILUzARCpHXOuuclDNJyFIE6+0KubannX0chGGec3vMOflOSgjXkP peDxGYrd2H/KRP5+zOk6w6h9nz5qOrGSmkYRj6LODISqrNKgsIpPUsJXrBfNwOwjd5Vw Dn+w== 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; bh=GYymcXfWags5IrSlzFnDdZ07+hOEHmpniYSJu0HwQ2Y=; b=Vm/vKmsEzTyReM/lL/LHmeWecvpUgBs3VsAaVv0QiP46w/u0gUcTkNMNouDKwcp1ZU odMYJS63u8/nKz7e/JmUOn3enXqpPP76dmpGccToMr2b8/Pqe+jAwQrsnLCJPAxii8ra H6n7dA07JgUKB1QPnohxnnOf/UTN17KLJg52SbbGN+RN7AJKG029WoCJ8QrKz2EoAx70 COIlgfug21oJFXZH049Ow/mgM3qLzveWBrm/6eABQdRcXrjOG3cMPdUFHMvevs/n1s0g 8FuhmW4T30cGfeH2/CoyOoQJpXv+WYkHXI0TQ1Fuh7gk+WXOj2DmXn4IFQZBwcNdgOL8 a/BQ== X-Gm-Message-State: AHYfb5hjUak7E3qzXeoWeNzrR6wuugXRs46gCX8Zmu/S/YoxBe6CdhWn TvTbDSBEqGqwBw== X-Received: by 10.99.110.10 with SMTP id j10mr20615529pgc.414.1502617219631; Sun, 13 Aug 2017 02:40:19 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.80]) by smtp.gmail.com with ESMTPSA id v11sm9063361pfl.101.2017.08.13.02.40.16 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Aug 2017 02:40:18 -0700 (PDT) From: Arvind Yadav To: rjw@rjwysocki.net, viresh.kumar@linaro.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH] CPUFREQ: Loongson2: constify platform_device_id Date: Sun, 13 Aug 2017 15:10:06 +0530 Message-Id: <38726390c030dc256d7dd169a416bc4a9814cbf7.1502617113.git.arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-pm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-pm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP 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 Acked-by: Viresh Kumar --- drivers/cpufreq/loongson2_cpufreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/cpufreq/loongson2_cpufreq.c b/drivers/cpufreq/loongson2_cpufreq.c index 9ac27b2..da34469 100644 --- a/drivers/cpufreq/loongson2_cpufreq.c +++ b/drivers/cpufreq/loongson2_cpufreq.c @@ -114,7 +114,7 @@ static struct cpufreq_driver loongson2_cpufreq_driver = { .attr = cpufreq_generic_attr, }; -static struct platform_device_id platform_device_ids[] = { +static const struct platform_device_id platform_device_ids[] = { { .name = "loongson2_cpufreq", },