Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2281721imd; Fri, 2 Nov 2018 08:47:58 -0700 (PDT) X-Google-Smtp-Source: AJdET5fPTC7u3Dooy2OukV05a2B7LrE7/bRKUM560BI1TEmjbtY25/7vKTCFgcr9smptjAGODdah X-Received: by 2002:a17:902:8a89:: with SMTP id p9-v6mr12422296plo.183.1541173677971; Fri, 02 Nov 2018 08:47:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541173677; cv=none; d=google.com; s=arc-20160816; b=k5ruyighgUNqnZwfmpRX7YFWcig8VQuEGeyaJhkdqvkzxPQUAsrrszMxa5lKhb9D0h DFBgTUAmHv7I0TEaB2K0S0jGcfB/GtahwRMzC4UYN7UoJJ/jikTu55qOXxFviqIZC94n jRapA+3Uslc8JC2WbYJFztgvohMaU+4MaI6NQW+NDXVChZ7C5Eq4w83BRPwEP6HdaAS2 Ql43EXQcEMfXEgdQd4OYQu0ozsBpZmHsjyU2k7TcRaqiPh/4XcVToBFC5LhHEKKcVzOS yNKBrpgcrTwYAHveKHc6rLf2z12mW5dN4zyolZr9wQ0L5p0tfXfK6HO3c2XhOsAf/8UX LX3A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=gtbp3JSKTU6th3kD6vqanJpTfE0kWI+EJzDs47T415E=; b=sSyBhcJFTlT5Jg2RRk+sKG7qzzBN2Wf9++P66TPn/e84iRa6pCJG77iGUZeYKlZ4Ec e5Oz/SoFB8lDS7CQJTiKi4OQzM6+9khQN9KEVtTvTCfUfmUZ0Jn1/1jzvl7qzySfHMAC DUsAJgfm7c3GaXK1SqTBA0rBzpGwdYjVL8gmpbf4+42cKuY3vZlmh0U+R+0CkuPP6deK Rvs1FSpEBFslRQwEVZncspLrzctVPgOxpGPG0djN0MxkTh98Q7TaomKYZWvjL0tvCl2g Nu2SqFE1w5ic+acSMaNQPlMw6H2Lown6DNp6nmcdi3RmvMn4tTJRbMo2ijiQL3CdFRLV 7v+A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id z70-v6si7681375pfi.165.2018.11.02.08.47.42; Fri, 02 Nov 2018 08:47:57 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727561AbeKCAyv (ORCPT + 99 others); Fri, 2 Nov 2018 20:54:51 -0400 Received: from mail3-relais-sop.national.inria.fr ([192.134.164.104]:50867 "EHLO mail3-relais-sop.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726098AbeKCAyv (ORCPT ); Fri, 2 Nov 2018 20:54:51 -0400 X-IronPort-AV: E=Sophos;i="5.54,456,1534802400"; d="scan'208";a="284189318" Received: from palace.lip6.fr ([132.227.105.202]) by mail3-relais-sop.national.inria.fr with ESMTP/TLS/AES128-SHA256; 02 Nov 2018 16:47:18 +0100 From: Julia Lawall To: Jassi Brar Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] mailbox: hi3660: constify mbox_chan_ops structure Date: Fri, 2 Nov 2018 16:11:55 +0100 Message-Id: <1541171515-24331-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The mbox_chan_ops structure can be const as it is only stored in the ops field of an mbox_controller structure and this field is const. Done with the help of Coccinelle. Signed-off-by: Julia Lawall --- drivers/mailbox/hi3660-mailbox.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mailbox/hi3660-mailbox.c b/drivers/mailbox/hi3660-mailbox.c index 3eea6b642484..c3fd1f2b797f 100644 --- a/drivers/mailbox/hi3660-mailbox.c +++ b/drivers/mailbox/hi3660-mailbox.c @@ -206,7 +206,7 @@ static int hi3660_mbox_send_data(struct mbox_chan *chan, void *msg) return 0; } -static struct mbox_chan_ops hi3660_mbox_ops = { +static const struct mbox_chan_ops hi3660_mbox_ops = { .startup = hi3660_mbox_startup, .send_data = hi3660_mbox_send_data, };