From patchwork Wed Jun 21 07:04:17 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9800937 X-Patchwork-Delegate: dvhart@infradead.org 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 51E1E60329 for ; Wed, 21 Jun 2017 07:06:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4284128521 for ; Wed, 21 Jun 2017 07:06:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 35BF52853D; Wed, 21 Jun 2017 07:06:53 +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=-5.5 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_WEB autolearn=unavailable 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 E2AFE28521 for ; Wed, 21 Jun 2017 07:06:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752384AbdFUHGf (ORCPT ); Wed, 21 Jun 2017 03:06:35 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:35387 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752366AbdFUHGc (ORCPT ); Wed, 21 Jun 2017 03:06:32 -0400 Received: by mail-pf0-f193.google.com with SMTP id s66so27972063pfs.2; Wed, 21 Jun 2017 00:06:32 -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:in-reply-to:references; bh=ZI5vE7WrFqeC0OoOvXUO5f0OH8X1D1A/RFxqbLr2+O0=; b=L3HmQaXMKCeKxg1cXJO2v+slQ8zKMVyfJWz9HojsZBNoVJYdohumfUuLai8uldlaSY snB1jy/kNdolCq/OTlNOs2ZlB5EmIp1bnsQqlu4Kce9kT9WyN0DEIzjTY66IUTyxE11M ehCfCorE9SQZzFeGIPxd4GWtnap4LPE3eLdDo8uDDsO/68IxOIt+UwC9aPJoLcophazs EEnCpxBCG9srNN2d9hSi8MKIcVDYLUg83VEUNkENj9EcqYQ5xPaG3XLDZE9l/hm6r/QS Bv1o3OApuns05+dQA4VA8/r9Tadl66bxEUdEeBgXTvRCz8wnYjp77hVuOw9ajR+rZbAq HkYw== 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; bh=ZI5vE7WrFqeC0OoOvXUO5f0OH8X1D1A/RFxqbLr2+O0=; b=B+lrx5gqidD17QhFqqtbfrcMQ5/NxjpzbnGyr3Mlkakjy/vRsI8H/b4nR9YB6Bj1Eo MVa05ly12DZowjUebp6QzOGCFerx0E5p9MmEvXzp0Kbnd960UOxeeVKL+koh6X/IWx9I 1IAjsDn2xFPruYggI+3Entgfmt5WpbCa9eCK2gvUW59ugQ49vNcttmzQg7WYOTRr+Hdb gWbvw76qujR0iNyVEBCF9JHje/EftZKZUFOwHTqpbXDzAz6fZF0Emq1Lhy1YrGIxfV55 ewmgrm3YP5vC9IwXntH9r/fF35122MUNkSXOffH/AxhohXcBB2Usfx/dhxMxOOH28HV8 utKA== X-Gm-Message-State: AKS2vOxUDxjNpSQYtZhYtNs8N1J//2KSV8y5tUGRFyt+Yo+sB/zdX0fr rc3orNfJMjkxEw== X-Received: by 10.84.185.106 with SMTP id e39mr40287103plg.181.1498028792010; Wed, 21 Jun 2017 00:06:32 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id v69sm30584953pfd.63.2017.06.21.00.06.27 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 00:06:31 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 21 Jun 2017 12:34:37 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, peter@piie.net, dvhart@infradead.org, andy@infradead.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org, sujith.thomas@intel.com Cc: Bhumika Goyal Subject: [PATCH 2/2] intel_menlow: add const to thermal_cooling_device_ops structure Date: Wed, 21 Jun 2017 12:34:17 +0530 Message-Id: <1498028657-12059-3-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1498028657-12059-1-git-send-email-bhumirks@gmail.com> References: <1498028657-12059-1-git-send-email-bhumirks@gmail.com> Sender: platform-driver-x86-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: platform-driver-x86@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Declare thermal_cooling_device_ops structure as const as it is only passed as an argument to the function thermal_cooling_device_register and this argument is of type const. So, declare the structure as const. Signed-off-by: Bhumika Goyal --- drivers/platform/x86/intel_menlow.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/intel_menlow.c b/drivers/platform/x86/intel_menlow.c index cbe0102..ef9b0af 100644 --- a/drivers/platform/x86/intel_menlow.c +++ b/drivers/platform/x86/intel_menlow.c @@ -142,7 +142,7 @@ static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev, return 0; } -static struct thermal_cooling_device_ops memory_cooling_ops = { +static const struct thermal_cooling_device_ops memory_cooling_ops = { .get_max_state = memory_get_max_bandwidth, .get_cur_state = memory_get_cur_bandwidth, .set_cur_state = memory_set_cur_bandwidth,