public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: "Andreas Bießmann" <andreas.devel@googlemail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v3 1/4] dm: at91: Drop use of ATMEL_PIO_PORTS in the header file
Date: Thu, 12 Feb 2015 10:14:23 +0100	[thread overview]
Message-ID: <54DC6EEF.8010409@gmail.com> (raw)
In-Reply-To: <1423697580-15354-2-git-send-email-sjg@chromium.org>

On 02/12/2015 12:32 AM, Simon Glass wrote:
> With driver model the number of PIO ports is defined by platform data, so
> remove it from the header file.
> 
> Signed-off-by: Simon Glass <sjg@chromium.org>

Acked-by: Andreas Bie?mann <andreas.devel@googlemail.com>

> ---
> 
> Changes in v3:
> - Split out the ATMEL_PIO_PORTS change into its own patch
> 
> Changes in v2: None
> 
>  arch/arm/include/asm/arch-at91/at91_pio.h | 12 ++++--------
>  1 file changed, 4 insertions(+), 8 deletions(-)
> 
> diff --git a/arch/arm/include/asm/arch-at91/at91_pio.h b/arch/arm/include/asm/arch-at91/at91_pio.h
> index 50464ff..3012278 100644
> --- a/arch/arm/include/asm/arch-at91/at91_pio.h
> +++ b/arch/arm/include/asm/arch-at91/at91_pio.h
> @@ -114,14 +114,10 @@ typedef union at91_pio {
>  		at91_port_t	pioa;
>  		at91_port_t	piob;
>  		at91_port_t	pioc;
> -	#if (ATMEL_PIO_PORTS > 3)
> -		at91_port_t	piod;
> -	#endif
> -	#if (ATMEL_PIO_PORTS > 4)
> -		at91_port_t	pioe;
> -	#endif
> -	} ;
> -	at91_port_t port[ATMEL_PIO_PORTS];
> +		at91_port_t	piod;	/* not present in all hardware */
> +		at91_port_t	pioe;/* not present in all hardware */
> +	};
> +	at91_port_t port[5];
>  } at91_pio_t;
>  
>  #ifdef CONFIG_AT91_GPIO
> 

  reply	other threads:[~2015-02-12  9:14 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-02-11 23:32 [U-Boot] [PATCH v3 0/4] dm: Convert boards to Kconfig for driver model Simon Glass
2015-02-11 23:32 ` [U-Boot] [PATCH v3 1/4] dm: at91: Drop use of ATMEL_PIO_PORTS in the header file Simon Glass
2015-02-12  9:14   ` Andreas Bießmann [this message]
2015-02-12 22:18     ` Simon Glass
2015-02-11 23:32 ` [U-Boot] [PATCH v3 2/4] dm: at91: snapper: Move driver model CONFIGs to Kconfig Simon Glass
2015-02-12 22:18   ` Simon Glass
2015-02-11 23:32 ` [U-Boot] [PATCH v3 3/4] dm: Kconfig: Move CONFIG_SYS_MALLOC_F_LEN " Simon Glass
2015-02-12 22:18   ` Simon Glass
2015-02-11 23:33 ` [U-Boot] [PATCH v3 4/4] dm: Drop unused driver model config_defaults Simon Glass
2015-02-12 22:18   ` Simon Glass

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=54DC6EEF.8010409@gmail.com \
    --to=andreas.devel@googlemail.com \
    --cc=u-boot@lists.denx.de \
    /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