From patchwork Wed Aug 2 17:58:40 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arvind Yadav X-Patchwork-Id: 9877343 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 BBDD6602BC for ; Wed, 2 Aug 2017 17:58:52 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BC4012869D for ; Wed, 2 Aug 2017 17:58:52 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id B052D28702; Wed, 2 Aug 2017 17:58:52 +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 4B2992869D for ; Wed, 2 Aug 2017 17:58:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752542AbdHBR6v (ORCPT ); Wed, 2 Aug 2017 13:58:51 -0400 Received: from mail-pf0-f194.google.com ([209.85.192.194]:34285 "EHLO mail-pf0-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751988AbdHBR6u (ORCPT ); Wed, 2 Aug 2017 13:58:50 -0400 Received: by mail-pf0-f194.google.com with SMTP id t86so6686668pfe.1; Wed, 02 Aug 2017 10:58:50 -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=XWYb1vhOSTxcWEvbuiDCSydYcJl97bLrx+Hcpkcr6rU=; b=DqC0xOrD3S47hZiECejOz8WSO4zzg0Y07qFr9O7oHw/LY+LsyjpAZFi65vJ12qyOF5 cTYXBMuJrSp+ZJp1nxCDBXIXPVhFHk9UZS0nFPYg6xaeQqHzU/lwfeqeYuCRAAF3ky4Q 32UfrsquH5UV6pcNTLMyEIRz+djQwi2PIFsAVF+HPDexJWfN7GvcVsM0tdxD9kQy+7X8 qckzQZmrHbxacVyD6blMZx3pmozomKtpjJVMUXn17FRuZCiAClR6IqvRj8Jdl80uPpJH qTIS/7wMht8BrWR18NpckpmMWwr36OTGthm149dv8bBkCpBu+EDpykCo8KUi6QELgIk8 bSGA== 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=XWYb1vhOSTxcWEvbuiDCSydYcJl97bLrx+Hcpkcr6rU=; b=QXn68WIW2u9gCxGathzfj5+z1iL2XfBO+7PNMwddaooO4PsyJaKe+X3fpdpfvuPSem MD55x5CyzOx95OriH7htqPXj27G6Z+Q4LZlbWBh/FZaPPuUDnNu+X0C9SRK3vfUqF88W x0OLBx0rF1JQTidOgCvnF418YHXefhHl398yqezCIE390V9zFLpDGWtYO1t+Mwzgwwb9 Ili+p9J6+d+AnpQ87sQwMY2ruk7IaCr4DbKnu6+CdCd6I7s8SPANOVbbEmTkadhDJyJX s8qoINGZmGqk0srRuQn2jCrRXL5/pAgOZQ1BeLbWMUY3mZckx9Pv5UGgxbzFU6vZvUt2 /Dpw== X-Gm-Message-State: AIVw112lGcasIPdA/RM5I/cJQWnrkbh85y+RSUKgNY+NI3iIth3QHsiL wfSvYCjjC2EfOQ== X-Received: by 10.84.231.143 with SMTP id g15mr25609091plk.157.1501696730043; Wed, 02 Aug 2017 10:58:50 -0700 (PDT) Received: from localhost.localdomain ([103.16.68.78]) by smtp.gmail.com with ESMTPSA id t11sm28649641pfa.143.2017.08.02.10.58.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 02 Aug 2017 10:58:49 -0700 (PDT) From: Arvind Yadav To: rui.zhang@intel.com, edubezval@gmail.com Cc: linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] thermal: intel_pch_thermal: constify pci_device_id. Date: Wed, 2 Aug 2017 23:28:40 +0530 Message-Id: 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 pci_device_id are not supposed to change at runtime. All functions working with pci_device_id provided by work with const pci_device_id. So mark the non-const structs as const. Signed-off-by: Arvind Yadav --- drivers/thermal/intel_pch_thermal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/thermal/intel_pch_thermal.c b/drivers/thermal/intel_pch_thermal.c index 2b49e8d..0bdce3e 100644 --- a/drivers/thermal/intel_pch_thermal.c +++ b/drivers/thermal/intel_pch_thermal.c @@ -387,7 +387,7 @@ static int intel_pch_thermal_resume(struct device *device) return ptd->ops->resume(ptd); } -static struct pci_device_id intel_pch_thermal_id[] = { +static const struct pci_device_id intel_pch_thermal_id[] = { { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_1), .driver_data = board_hsw, }, { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCH_THERMAL_DID_HSW_2),