[PATCH resent v2 1/2] ioport : add DEFINE_RES_DMA_SIZE_NAMED macro
Shawn Guo
shawn.guo at linaro.org
Thu Jan 19 03:14:29 EST 2012
On Thu, Jan 19, 2012 at 03:53:39PM +0800, Huang Shijie wrote:
> Some DMA resource does have the range more then ones.
>
I'm not sure the patch is welcomed. You may want to just use
DEFINE_RES_NAMED for such cases.
Regards,
Shawn
> Signed-off-by: Huang Shijie <b32955 at freescale.com>
> ---
> include/linux/ioport.h | 4 +++-
> 1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/include/linux/ioport.h b/include/linux/ioport.h
> index 9d57a71..9ea5de4 100644
> --- a/include/linux/ioport.h
> +++ b/include/linux/ioport.h
> @@ -134,8 +134,10 @@ struct resource_list {
> #define DEFINE_RES_IRQ(_irq) \
> DEFINE_RES_IRQ_NAMED((_irq), NULL)
>
> +#define DEFINE_RES_DMA_SIZE_NAMED(_dma, _size, _name) \
> + DEFINE_RES_NAMED((_dma), (_size), (_name), IORESOURCE_DMA)
> #define DEFINE_RES_DMA_NAMED(_dma, _name) \
> - DEFINE_RES_NAMED((_dma), 1, (_name), IORESOURCE_DMA)
> + DEFINE_RES_DMA_SIZE_NAMED((_dma), 1, (_name))
> #define DEFINE_RES_DMA(_dma) \
> DEFINE_RES_DMA_NAMED((_dma), NULL)
>
> --
> 1.7.0.4
More information about the linux-arm-kernel
mailing list