From patchwork Fri Jun 23 11:43:19 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9806289 X-Patchwork-Delegate: kvalo@adurom.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 1B1E76086C for ; Fri, 23 Jun 2017 11:45:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0A64F286B9 for ; Fri, 23 Jun 2017 11:45:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id F0E8428746; Fri, 23 Jun 2017 11:45: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=-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 AF8FC286B9 for ; Fri, 23 Jun 2017 11:45:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753877AbdFWLph (ORCPT ); Fri, 23 Jun 2017 07:45:37 -0400 Received: from mail-pf0-f195.google.com ([209.85.192.195]:33180 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753492AbdFWLpY (ORCPT ); Fri, 23 Jun 2017 07:45:24 -0400 Received: by mail-pf0-f195.google.com with SMTP id w12so7003162pfk.0; Fri, 23 Jun 2017 04:45:24 -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=yiZG6lUwaPIShZk/pn1USvOhiBq1HG/RaaoA7ksUX9I=; b=Ivx8o6uHx/vDceKdymxxBKsWdi8r0C0+WKugdL1zLLf1lAASb0xkbsjqk7V4TN2lSq 3Dj/yyOie0J0mCDnCypF7SaiMmJU82kHLF3llJq+J6O0hBBYeoXyMqUtDg0Zp94v84GK PK9GIKD/nB2SWLybT8GksctdM5AyndJHsylMfMt3SuAX2D846sjdDgwg3DCW7+qg8MF1 9Vp3ZyltIaBCLg/BAW5PgMu+j5M9fAfo8X2Dox9hnJ2eLbMzV8uzV+btC0Uc7aVgWdWS X27YhbjRD9MCc2WkqS5ZdNVVymsCaqeHFCiZCmDlWaDltbhXUFu80eEGxNVnMXt+OeMz ti8w== 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=yiZG6lUwaPIShZk/pn1USvOhiBq1HG/RaaoA7ksUX9I=; b=lTgxi7q4bclEyRt1TDcfsqmpFIAVxRc1cp2+03s+lp3jwENEsRa3m+HZJntr4gxkfn Lp5C5JWevOcMV6dX+WglXa3SqPlAPlfpNiKOuZuWLPOSPelw2gJtp26SIAalKmOSduxk prYXMQ1qRMjxpLTbnOohTtPFTS56wGmmSoZhiXMG8BdWEHr7aHRJ5htL4CTc/EVThSws DK42j2rX4JNA7+FC4ADWqRm9CDBEi4vRktcJIUVUn6ADJM/eNA69nvvaVDAI4vlvl3Lj kfXakK1bnUJHsezsNJBip/enc2zmpUFkaRNvnI0DL0CsJpk/v5TvrsSIqH7luL93W8Rc A4Eg== X-Gm-Message-State: AKS2vOyE+lGaZpoK+QrzYPuttdzlK3Qg8Gl+H/ggoBMFHpe40ybPVnH2 VtFWsAVyf8vscg== X-Received: by 10.84.247.16 with SMTP id n16mr8385508pll.74.1498218323663; Fri, 23 Jun 2017 04:45:23 -0700 (PDT) Received: from gmail.com ([106.51.8.234]) by smtp.gmail.com with ESMTPSA id i9sm10232914pgr.7.2017.06.23.04.45.18 (version=TLS1 cipher=AES128-SHA bits=128/128); Fri, 23 Jun 2017 04:45:22 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Fri, 23 Jun 2017 17:13:23 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, pizza@shaftnet.org, kvalo@codeaurora.org, linux-wireless@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] cw1200: add const to hwbus_ops structures Date: Fri, 23 Jun 2017 17:13:19 +0530 Message-Id: <1498218199-13429-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 2.7.4 Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Declare hwbus_ops structures as const as they are only passed as an argument to the function cw1200_core_probe. This argument is of type const. So, make these structures const. Signed-off-by: Bhumika Goyal --- drivers/net/wireless/st/cw1200/cw1200_sdio.c | 2 +- drivers/net/wireless/st/cw1200/cw1200_spi.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/st/cw1200/cw1200_sdio.c b/drivers/net/wireless/st/cw1200/cw1200_sdio.c index 709f56e..1037ec6 100644 --- a/drivers/net/wireless/st/cw1200/cw1200_sdio.c +++ b/drivers/net/wireless/st/cw1200/cw1200_sdio.c @@ -266,7 +266,7 @@ static int cw1200_sdio_pm(struct hwbus_priv *self, bool suspend) return ret; } -static struct hwbus_ops cw1200_sdio_hwbus_ops = { +static const struct hwbus_ops cw1200_sdio_hwbus_ops = { .hwbus_memcpy_fromio = cw1200_sdio_memcpy_fromio, .hwbus_memcpy_toio = cw1200_sdio_memcpy_toio, .lock = cw1200_sdio_lock, diff --git a/drivers/net/wireless/st/cw1200/cw1200_spi.c b/drivers/net/wireless/st/cw1200/cw1200_spi.c index 63f95e9..412fb6e4 100644 --- a/drivers/net/wireless/st/cw1200/cw1200_spi.c +++ b/drivers/net/wireless/st/cw1200/cw1200_spi.c @@ -352,7 +352,7 @@ static int cw1200_spi_pm(struct hwbus_priv *self, bool suspend) return irq_set_irq_wake(self->func->irq, suspend); } -static struct hwbus_ops cw1200_spi_hwbus_ops = { +static const struct hwbus_ops cw1200_spi_hwbus_ops = { .hwbus_memcpy_fromio = cw1200_spi_memcpy_fromio, .hwbus_memcpy_toio = cw1200_spi_memcpy_toio, .lock = cw1200_spi_lock,