From patchwork Sun Aug 13 11:33:31 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9897725 X-Patchwork-Delegate: rui.zhang@intel.com 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 4C6DB60351 for ; Sun, 13 Aug 2017 11:33:48 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 3638F28711 for ; Sun, 13 Aug 2017 11:33:48 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 2AFBE28715; Sun, 13 Aug 2017 11:33:48 +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=-7.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI 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 B7AD928711 for ; Sun, 13 Aug 2017 11:33:47 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750952AbdHMLdq (ORCPT ); Sun, 13 Aug 2017 07:33:46 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34502 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750897AbdHMLdq (ORCPT ); Sun, 13 Aug 2017 07:33:46 -0400 Received: by mail-pf0-f194.google.com with SMTP id t86so7533653pfe.1; Sun, 13 Aug 2017 04:33:45 -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=6/kexWC1e/5YlH/k7wgTFpl7CPN4HqEN8bAqU8+BrDM=; b=iHbZdRnjMwO9jrvFybvB3uOKdud7EesfKvyIzp/x3CM/swPiOlJuBemI7b+MbY1oAl jJcQy2zfzHrWzAE1X/J2ZMgMoN1+gJZd/XeCn+cSfn5dZtC5kd+HMBjfM3HJY0lrcArI n1njOriD6KsUq3V+abKtzkUgLFDtxLEwAxsvC48QFJ5CcEIAcwNee909TLlro3x5QA7E 4i8Ta3o3JKp3jcaQZpIBoweuo1oRjEGmI2FJ6aoTC+Kp/jXzJIgus4uWqNgwt6J7hNgH dZMGVo5p16oQUAQGiW2HYL3CLCUZc6U4jeoLhRQWqVgxcQkCQRvGvwl7fAtdEVw24iXY ztxA== 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=6/kexWC1e/5YlH/k7wgTFpl7CPN4HqEN8bAqU8+BrDM=; b=TtRmf0aw51lA2scQhKxfBsR3Yl6r25NwFW1PEE216ajr1SC2e4GOlqqgyrMpLkeOLK eBSnCfvje22qStgLrJfXR3Ueo1BsNqfQQOjUYTxHVoNz2yDka3/Lp8l2Sp6A3YGzb8+2 q9pleTeA9awW+/Sqi8uGbKKIeK5hP8FChoGhOG9hyTTx5HjOCaml/B19BVbP4InL/us2 3wkNyp3t7H9/rrDTKcr56fdh/ymMOUhPMNTcv8L8bvs0pxOYkJR76BFTyg3JMQfMxWRs X9osXdqjdn6U4OmKAjJkItqIlzpjzi6znNBm/4pTgMKjnMPj0K5H+Zk7nHg82tT5aQM/ gKWg== X-Gm-Message-State: AHYfb5hEGwpB6KEdDWKzoWrgaFVhYTdlxI/ISr9xBp5A7swAPLyilA1x vEPXxoZFDR2mZw== X-Received: by 10.99.100.194 with SMTP id y185mr21121758pgb.92.1502624025589; Sun, 13 Aug 2017 04:33:45 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.80]) by smtp.gmail.com with ESMTPSA id l24sm9416759pfi.99.2017.08.13.04.33.43 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sun, 13 Aug 2017 04:33:45 -0700 (PDT) From: Arvind Yadav To: rui.zhang@intel.com, edubezval@gmail.com, gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, linux-pm@vger.kernel.org Subject: [PATCH] thermal: max77620: constify platform_device_id Date: Sun, 13 Aug 2017 17:03:31 +0530 Message-Id: <30f8e66e4397f59747e9843e7c09b0c42b2d5804.1502623863.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 --- drivers/thermal/max77620_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/max77620_thermal.c b/drivers/thermal/max77620_thermal.c index 159bbce..3c74b91 100644 --- a/drivers/thermal/max77620_thermal.c +++ b/drivers/thermal/max77620_thermal.c @@ -149,7 +149,7 @@ static int max77620_thermal_probe(struct platform_device *pdev) return 0; } -static struct platform_device_id max77620_thermal_devtype[] = { +static const struct platform_device_id max77620_thermal_devtype[] = { { .name = "max77620-thermal", }, {}, };