From patchwork Wed Jun 21 07:04:16 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9800939 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 8038D6086C 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 71A9028521 for ; Wed, 21 Jun 2017 07:06:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 65C892853C; 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 195A028534 for ; Wed, 21 Jun 2017 07:06:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751909AbdFUHG1 (ORCPT ); Wed, 21 Jun 2017 03:06:27 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:33904 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752204AbdFUHGZ (ORCPT ); Wed, 21 Jun 2017 03:06:25 -0400 Received: by mail-pf0-f196.google.com with SMTP id d5so27982728pfe.1; Wed, 21 Jun 2017 00:06:25 -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=0RcfJwxuK4IWlm50zdsgpMz6Y3TOea9UlyUJLj8NIxY=; b=DkFZW2974zIQRozi5QYIAEa3OkeFSfxxz3lzXwqIqWGuMzzK2ECwOan3Iy171DEh1G xu5wPzCZhGYx4mTwbnF/ckW6t2nVg0lZSc6mau0OXoCrWqNpaJbFZkKHCePNL+EiuplC RkqHG1hVc3mseOTUgOSgGjkMbYQ/GGe5CP4MceHQQuAp1qdCfFcEMf9cuHX7m3fGvOTO aNLIDutBqdAUEbxKQsGazzWDZAu1L6uD7sJOCHldCf8OFave/+AePUaHw0zqQ8qOIigz CGxhwm25M/5pBc1PiXIA5E8gF2G4Y4dQfg5OGOWDDYelTzzbJy6aHdmghmJr4KIahIwF x5Zg== 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=0RcfJwxuK4IWlm50zdsgpMz6Y3TOea9UlyUJLj8NIxY=; b=ev8DKtH/+CsVURGZUFPrBc/xzlXu+du3iPTbcP2tMapZ0udTaiDRUQkSx1a4k6e5qt jJmlwY1nfmlSM5WULAovQCJrGCfbZdpV1ygLdEQl0bQBiOegN5b4FIsQFW1XfqeqSWTF +TbZpYN6mUfEoifFbhKObIkY/qBWuPgFpS/m1Yr9OCftdd7atQ7shwqOTmGbKUYk6jEs LGueFBlbTenkxV1KPRpD0+rAl15Upbe4jB2bqQs6Sa4EAn4qHm5w4Li158VdFE8yYWGf RemSInzTYyIHmyL8b85zgAvBEdzYNAoFtbA5cu0fOYIY3K2DLzkr0oV81A51Q8ZMoBEf YjVg== X-Gm-Message-State: AKS2vOxhrSUFIDpBC75hWP4rgUeGCzf1Q+Iuf9o5TfuiZOJPl8bCKKXP vwJgNVtl8IAj5g== X-Received: by 10.99.106.66 with SMTP id f63mr35477184pgc.150.1498028784951; Wed, 21 Jun 2017 00:06:24 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id o12sm31749946pfi.9.2017.06.21.00.06.20 (version=TLS1 cipher=AES128-SHA bits=128/128); Wed, 21 Jun 2017 00:06:24 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Wed, 21 Jun 2017 12:34:30 +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 1/2] acerhdf: add const to thermal_cooling_device_ops structure Date: Wed, 21 Jun 2017 12:34:16 +0530 Message-Id: <1498028657-12059-2-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/acerhdf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/acerhdf.c b/drivers/platform/x86/acerhdf.c index 2acdb0d..ea22591 100644 --- a/drivers/platform/x86/acerhdf.c +++ b/drivers/platform/x86/acerhdf.c @@ -557,7 +557,7 @@ static int acerhdf_set_cur_state(struct thermal_cooling_device *cdev, } /* bind fan callbacks to fan device */ -static struct thermal_cooling_device_ops acerhdf_cooling_ops = { +static const struct thermal_cooling_device_ops acerhdf_cooling_ops = { .get_max_state = acerhdf_get_max_state, .get_cur_state = acerhdf_get_cur_state, .set_cur_state = acerhdf_set_cur_state,