From patchwork Tue Aug 22 08:08:02 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bhumika Goyal X-Patchwork-Id: 9914429 X-Patchwork-Delegate: geert@linux-m68k.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 C5F0A603FF for ; Tue, 22 Aug 2017 08:09:07 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id D5B8B28834 for ; Tue, 22 Aug 2017 08:09:07 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id CAA3428830; Tue, 22 Aug 2017 08:09:07 +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 566E6287BD for ; Tue, 22 Aug 2017 08:09:07 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932199AbdHVII2 (ORCPT ); Tue, 22 Aug 2017 04:08:28 -0400 Received: from mail-pf0-f196.google.com ([209.85.192.196]:35984 "EHLO mail-pf0-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932188AbdHVII0 (ORCPT ); Tue, 22 Aug 2017 04:08:26 -0400 Received: by mail-pf0-f196.google.com with SMTP id t83so5252888pfj.3; Tue, 22 Aug 2017 01:08: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; bh=Q3MRfafsbHE6rNMfQ1zHFiJOqSo8xTG6nNH50nra7Pg=; b=oHZrlsxDUvGzZ3ttnb418p62VFWOXASgs9A/rMJLfvrciJT9mXYwVa8Kc/HClRkNUC t/HAiU1OAD8Sa/myvidxwGA2ijDUhcCFaw3C3ac5CJnIQyNfXH9rUFCd0xou69+YfseZ 9lx229kaR0kBK1HmOUxw/4DmG1MVLPglcsUWP/n/i6CQDnCrcwKFCPrz+1E15MZRY5S9 O+lXy4A00cSwmoCjC1qNjwOEpC6zw9CPMD4Mr+QPW6tzzT0GCPKIl677FXPItAAur6by feadqZGizgNS4AyNlqbboJdk9nJpYhtqkKglctQYIcWPEyZrGrFjqa2EGkDB6C0sE+ep kfTA== 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=Q3MRfafsbHE6rNMfQ1zHFiJOqSo8xTG6nNH50nra7Pg=; b=sK5O6ajm3s8ypWKhQ5nTVKuP1WMUMNk3a463LH4Fa05ip/r2ivClg85vDL3gbE2kj7 5eVXjhd5o0HiLN1O05LgPpPMhrluq7H/mqeTkVj1uLViDAS3tW1UK54lSryW+Xyvvwgl 4E/m4R2kIKHpaOLHlkuc+sSGdX/M8xSd9aXDSsXpgKl4rScHNFVA7lBZ9tztPHQuLw5R DXxa6dmgvK6kiPHlGJKoXlo/2Y2BLPbw9SlERA9/q/shWOhHddbTpbPvFVTtcbQQY+Pp ieywBrwZ8JMF8BtUIzbEGitAal9TWLGT3cwIiSPT/gsJzE30jot/oqol8vM2cWlPUDOh Chbw== X-Gm-Message-State: AHYfb5hErcmSWt4USclchkAiwTvutcT1VAPf8jsWKzMFBiD1tEpFlsu0 riIHUr3bpmk35w== X-Received: by 10.84.231.201 with SMTP id g9mr22631476pln.146.1503389305236; Tue, 22 Aug 2017 01:08:25 -0700 (PDT) Received: from gmail.com ([117.196.127.182]) by smtp.gmail.com with ESMTPSA id n1sm28113876pfj.46.2017.08.22.01.08.21 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 22 Aug 2017 01:08:24 -0700 (PDT) Received: by gmail.com (sSMTP sendmail emulation); Tue, 22 Aug 2017 13:38:18 +0530 From: Bhumika Goyal To: julia.lawall@lip6.fr, sergei.shtylyov@cogentembedded.com, netdev@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Bhumika Goyal Subject: [PATCH] ravb: make mdiobb_ops const Date: Tue, 22 Aug 2017 13:38:02 +0530 Message-Id: <1503389282-17369-1-git-send-email-bhumirks@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-renesas-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-renesas-soc@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Make these const as they are only stored in a const field of a mdiobb_ctrl structure. Signed-off-by: Bhumika Goyal Acked-by: Sergei Shtylyov --- drivers/net/ethernet/renesas/ravb_main.c | 2 +- drivers/net/ethernet/renesas/sh_eth.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/renesas/ravb_main.c b/drivers/net/ethernet/renesas/ravb_main.c index fdf30bf..6ffd9e4 100644 --- a/drivers/net/ethernet/renesas/ravb_main.c +++ b/drivers/net/ethernet/renesas/ravb_main.c @@ -172,7 +172,7 @@ static int ravb_get_mdio_data(struct mdiobb_ctrl *ctrl) } /* MDIO bus control struct */ -static struct mdiobb_ops bb_ops = { +static const struct mdiobb_ops bb_ops = { .owner = THIS_MODULE, .set_mdc = ravb_set_mdc, .set_mdio_dir = ravb_set_mdio_dir, diff --git a/drivers/net/ethernet/renesas/sh_eth.c b/drivers/net/ethernet/renesas/sh_eth.c index d2e88a3..8af353f 100644 --- a/drivers/net/ethernet/renesas/sh_eth.c +++ b/drivers/net/ethernet/renesas/sh_eth.c @@ -1119,7 +1119,7 @@ static void sh_mdc_ctrl(struct mdiobb_ctrl *ctrl, int bit) } /* mdio bus control struct */ -static struct mdiobb_ops bb_ops = { +static const struct mdiobb_ops bb_ops = { .owner = THIS_MODULE, .set_mdc = sh_mdc_ctrl, .set_mdio_dir = sh_mmd_ctrl,