Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1706312

Re: [PATCH 0/5] constify sdhci_pltfm_data and sdhci_ops structures

From Ulf Hansson <ulf.hansson@linaro.org>
Newsgroups linux.kernel
Subject Re: [PATCH 0/5] constify sdhci_pltfm_data and sdhci_ops structures
Date 2017-08-08 12:40 +0200
Message-ID <uca5B-71u-39@gated-at.bofh.it> (permalink)
References <ubNiF-6UQ-9@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


On 7 August 2017 at 11:50, Julia Lawall <Julia.Lawall@lip6.fr> wrote:
> 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(-)

Thanks, applied for next!

Kind regards
Uffe

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 0/5] constify sdhci_pltfm_data and sdhci_ops structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-08-07 12:20 +0200
  [PATCH 2/5] mmc: sdhci-bcm-kona: constify sdhci_pltfm_data and sdhci_ops structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-08-07 12:20 +0200
  [PATCH 3/5] mmc: sdhci-sirf: constify sdhci_pltfm_data and sdhci_ops structures Julia Lawall <Julia.Lawall@lip6.fr> - 2017-08-07 12:20 +0200
  Re: [PATCH 0/5] constify sdhci_pltfm_data and sdhci_ops structures Ulf Hansson <ulf.hansson@linaro.org> - 2017-08-08 12:40 +0200

csiph-web