Linux MultiMedia Card development
 help / color / mirror / Atom feed
From: Andrew Lunn <andrew@lunn.ch>
To: Linus Walleij <linus.walleij@linaro.org>
Cc: linux-mmc@vger.kernel.org, Chris Ball <cjb@laptop.org>,
	Ulf Hansson <ulf.hansson@linaro.org>,
	Nicolas Pitre <nico@fluxnic.net>,
	Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Subject: Re: [PATCH 1/2] mmc: mvsdio: delete platform data header
Date: Wed, 25 Nov 2015 15:54:09 +0100	[thread overview]
Message-ID: <20151125145409.GF11384@lunn.ch> (raw)
In-Reply-To: <1448459851-32565-1-git-send-email-linus.walleij@linaro.org>

On Wed, Nov 25, 2015 at 02:57:31PM +0100, Linus Walleij wrote:
> This platform data struct is only used inside the MVSDIO driver,
> nowhere else in the entire kernel. Move the struct into the
> driver and delete the external header.
> 
> Cc: Nicolas Pitre <nico@fluxnic.net>
> Cc: Andrew Lunn <andrew@lunn.ch>
> Cc: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

Probably a side effect of moving all kirkwood and Dove devices to
device tree.

Acked-by: Andrew Lunn <andrew@lunn.ch>

	  Andrew

> ---
>  drivers/mmc/host/mvsdio.c                |  7 ++++++-
>  include/linux/platform_data/mmc-mvsdio.h | 18 ------------------
>  2 files changed, 6 insertions(+), 19 deletions(-)
>  delete mode 100644 include/linux/platform_data/mmc-mvsdio.h
> 
> diff --git a/drivers/mmc/host/mvsdio.c b/drivers/mmc/host/mvsdio.c
> index a448498e3af2..18c70380ea93 100644
> --- a/drivers/mmc/host/mvsdio.c
> +++ b/drivers/mmc/host/mvsdio.c
> @@ -28,7 +28,6 @@
>  
>  #include <asm/sizes.h>
>  #include <asm/unaligned.h>
> -#include <linux/platform_data/mmc-mvsdio.h>
>  
>  #include "mvsdio.h"
>  
> @@ -37,6 +36,12 @@
>  static int maxfreq;
>  static int nodma;
>  
> +struct mvsdio_platform_data {
> +	unsigned int clock;
> +	int gpio_card_detect;
> +	int gpio_write_protect;
> +};
> +
>  struct mvsd_host {
>  	void __iomem *base;
>  	struct mmc_request *mrq;
> diff --git a/include/linux/platform_data/mmc-mvsdio.h b/include/linux/platform_data/mmc-mvsdio.h
> deleted file mode 100644
> index d02704cd3695..000000000000
> --- a/include/linux/platform_data/mmc-mvsdio.h
> +++ /dev/null
> @@ -1,18 +0,0 @@
> -/*
> - * This file is licensed under the terms of the GNU General Public
> - * License version 2.  This program is licensed "as is" without any
> - * warranty of any kind, whether express or implied.
> - */
> -
> -#ifndef __MMC_MVSDIO_H
> -#define __MMC_MVSDIO_H
> -
> -#include <linux/mbus.h>
> -
> -struct mvsdio_platform_data {
> -	unsigned int clock;
> -	int gpio_card_detect;
> -	int gpio_write_protect;
> -};
> -
> -#endif
> -- 
> 2.4.3
> 

  reply	other threads:[~2015-11-25 14:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-25 13:57 [PATCH 1/2] mmc: mvsdio: delete platform data header Linus Walleij
2015-11-25 14:54 ` Andrew Lunn [this message]
2015-11-25 16:34 ` Ulf Hansson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151125145409.GF11384@lunn.ch \
    --to=andrew@lunn.ch \
    --cc=cjb@laptop.org \
    --cc=linus.walleij@linaro.org \
    --cc=linux-mmc@vger.kernel.org \
    --cc=nico@fluxnic.net \
    --cc=sebastian.hesselbarth@gmail.com \
    --cc=ulf.hansson@linaro.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox