From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752826AbdHGKQQ (ORCPT ); Mon, 7 Aug 2017 06:16:16 -0400 Received: from mail2-relais-roc.national.inria.fr ([192.134.164.83]:29741 "EHLO mail2-relais-roc.national.inria.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752606AbdHGKQP (ORCPT ); Mon, 7 Aug 2017 06:16:15 -0400 X-IronPort-AV: E=Sophos;i="5.41,337,1498514400"; d="scan'208";a="286295894" From: Julia Lawall Cc: bhumirks@gmail.com, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org, linux-mmc@vger.kernel.org, Ulf Hansson , Adrian Hunter , linux-arm-kernel@lists.infradead.org, bcm-kernel-feedback-list@broadcom.com Subject: [PATCH 0/5] constify sdhci_pltfm_data and sdhci_ops structures Date: Mon, 7 Aug 2017 11:50:39 +0200 Message-Id: <1502099444-10473-1-git-send-email-Julia.Lawall@lip6.fr> X-Mailer: git-send-email 1.9.1 To: unlisted-recipients:; (no To-header on input) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The sdhci_pltfm_data structures are only passed as the second argument of sdhci_pltfm_init, which is const, while the sdhci_ops structures are only stored in the ops field of a sdhci_pltfm_data structure, which is also const. Thus both kinds of structures can be const as well. Done with the help of Coccinelle. --- drivers/mmc/host/sdhci-bcm-kona.c | 4 ++-- drivers/mmc/host/sdhci-brcmstb.c | 2 +- drivers/mmc/host/sdhci-of-arasan.c | 4 ++-- drivers/mmc/host/sdhci-pic32.c | 2 +- drivers/mmc/host/sdhci-pxav3.c | 2 +- drivers/mmc/host/sdhci-sirf.c | 4 ++-- 6 files changed, 9 insertions(+), 9 deletions(-)