From patchwork Fri Jun 9 06:08:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9777269 X-Patchwork-Delegate: andy.shevchenko@gmail.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 F31F46034B for ; Fri, 9 Jun 2017 06:09:54 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E264027165 for ; Fri, 9 Jun 2017 06:09:54 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CB223284D5; Fri, 9 Jun 2017 06:09:54 +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=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 656A127165 for ; Fri, 9 Jun 2017 06:09:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751502AbdFIGJx (ORCPT ); Fri, 9 Jun 2017 02:09:53 -0400 Received: from mail-pg0-f68.google.com ([74.125.83.68]:34587 "EHLO mail-pg0-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751501AbdFIGJx (ORCPT ); Fri, 9 Jun 2017 02:09:53 -0400 Received: by mail-pg0-f68.google.com with SMTP id v14so6765865pgn.1; Thu, 08 Jun 2017 23:09:52 -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=2XpH+gUe7+Lv2CLTF138je1ebj4hduHK1wvG9LzW2AI=; b=PhR9s4N1ScjA7uSZRKPApGdYsir4fy/ymA9LtfjFtxiFRhIL80xy/8qb62HholIgHi urKFrc3lp3VruG6KTf1y4cHBefTqbZgcgqfVFh/tnB/HI+5y8suV1xKPlQpqUkTBDOhg OOPfMAmXj/5HtB0Q3v00vCHal+ekTIubO8vAqwqcI13dbGBfOd4MzBFnRaKQn3Lopa+K DhILxXNGllm8q4GvROaDnTylZfVL0sTnfuR+UBlcCchE4854rZ6f7qoytb3hso4TyXLx Tlbquwaa0mTSxMW6NIIruDO6sxCDc0RRhMReR9qg3VUZeRTQlVqd6IgKXqwSDRnSTKDz yUtg== 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=2XpH+gUe7+Lv2CLTF138je1ebj4hduHK1wvG9LzW2AI=; b=Z0LRIlXABy8YTz2yL1D8gZMQ2S54Ze4ZuZGGDYr2hjFi7isAsuZJ+j6qU3uYNHA56g pMT6pKPlsmjvdti4rXzzlO6AimSa491YUf+X424F0VGRVbA9NfBwwJU68o6evaaCh19M 5mrUN4HiesHUsrOuyeTjh2RcRXwNnABtMRv6elYrwt8TGUfIQ5H2+NLdvaNBXgw+lxk8 /k2OkMQXksgsymFBL4ji2l/ArBKqqmIgXkT0wV06c2woeyyCQFJf3iQsOFvYyeXDmAOQ JZoQHlBc/7GBpdkE04dLeqJJNtgPPt71+BVFDEXOd2jUs8rVmQm80kXF1pKJ1122XfRk nJUw== X-Gm-Message-State: AODbwcBuRl8tczssHGPjKGB6sqj1sqZa+l7qlGj4D+7u4TjBE0z3o7Zo MW/QJxdRRz3Smg== X-Received: by 10.84.164.165 with SMTP id w34mr12273705pla.54.1496988592137; Thu, 08 Jun 2017 23:09:52 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id g28sm457572pgn.58.2017.06.08.23.09.47 (version=TLS1 cipher=AES128-SHA bits=128/128); Thu, 08 Jun 2017 23:09:51 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 09 Jun 2017 11:38:22 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, ike.pan@canonical.com, dvhart@infradead.org, andy@infradead.org, platform-driver-x86@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH v2] platform/x86: ideapad-laptop: constify rfkill_ops structure Date: Fri, 9 Jun 2017 11:38:18 +0530 Message-Id: <1496988498-29240-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 2.7.4 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 Add const to rfkill_ops structure as it is only passed as an argument to the functions rfkill_alloc. This argument is of type const, so annotate the structure with const. Signed-off-by: Bhumika Goyal --- Changes since v1: * Split the changes to one patch per vendor. drivers/platform/x86/ideapad-laptop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/platform/x86/ideapad-laptop.c b/drivers/platform/x86/ideapad-laptop.c index 24ca9fb..3beec1e 100644 --- a/drivers/platform/x86/ideapad-laptop.c +++ b/drivers/platform/x86/ideapad-laptop.c @@ -478,7 +478,7 @@ static int ideapad_rfk_set(void *data, bool blocked) return write_ec_cmd(priv->priv->adev->handle, opcode, !blocked); } -static struct rfkill_ops ideapad_rfk_ops = { +static const struct rfkill_ops ideapad_rfk_ops = { .set_block = ideapad_rfk_set, };