[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAHp75VfV037eyOs9C=pPtG5wg_DLAWkJBk6oyxQNth_YRBeeFQ@mail.gmail.com>
Date: Wed, 3 Aug 2022 13:33:05 +0200
From: Andy Shevchenko <andy.shevchenko@...il.com>
To: Colin Foster <colin.foster@...advantage.com>
Cc: linux-arm Mailing List <linux-arm-kernel@...ts.infradead.org>,
"open list:GPIO SUBSYSTEM" <linux-gpio@...r.kernel.org>,
netdev <netdev@...r.kernel.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
devicetree <devicetree@...r.kernel.org>,
Terry Bowman <terry.bowman@....com>,
Vladimir Oltean <vladimir.oltean@....com>,
Wolfram Sang <wsa@...nel.org>,
Microchip Linux Driver Support <UNGLinuxDriver@...rochip.com>,
Steen Hegelund <Steen.Hegelund@...rochip.com>,
Lars Povlsen <lars.povlsen@...rochip.com>,
Linus Walleij <linus.walleij@...aro.org>,
Paolo Abeni <pabeni@...hat.com>,
Jakub Kicinski <kuba@...nel.org>,
Eric Dumazet <edumazet@...gle.com>,
"David S. Miller" <davem@...emloft.net>,
Russell King <linux@...linux.org.uk>,
Heiner Kallweit <hkallweit1@...il.com>,
Andrew Lunn <andrew@...n.ch>,
Krzysztof Kozlowski <krzysztof.kozlowski+dt@...aro.org>,
Rob Herring <robh+dt@...nel.org>,
Lee Jones <lee.jones@...aro.org>, katie.morris@...advantage.com
Subject: Re: [PATCH v15 mfd 7/9] resource: add define macro for register
address resources
On Wed, Aug 3, 2022 at 7:47 AM Colin Foster
<colin.foster@...advantage.com> wrote:
>
> DEFINE_RES_ macros have been created for the commonly used resource types,
> but not IORESOURCE_REG. Add the macro so it can be used in a similar manner
> to all other resource types.
FWIW,
Reviewed-by: Andy Shevchenko <andy.shevchenko@...il.com>
> Signed-off-by: Colin Foster <colin.foster@...advantage.com>
> Reviewed-by: Vladimir Oltean <vladimir.oltean@....com>
> ---
>
> (No changes since v14)
>
> v14
> * Add Reviewed tag
>
> ---
> include/linux/ioport.h | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/include/linux/ioport.h b/include/linux/ioport.h
> index ec5f71f7135b..b0d09b6f2ecf 100644
> --- a/include/linux/ioport.h
> +++ b/include/linux/ioport.h
> @@ -171,6 +171,11 @@ enum {
> #define DEFINE_RES_MEM(_start, _size) \
> DEFINE_RES_MEM_NAMED((_start), (_size), NULL)
>
> +#define DEFINE_RES_REG_NAMED(_start, _size, _name) \
> + DEFINE_RES_NAMED((_start), (_size), (_name), IORESOURCE_REG)
> +#define DEFINE_RES_REG(_start, _size) \
> + DEFINE_RES_REG_NAMED((_start), (_size), NULL)
> +
> #define DEFINE_RES_IRQ_NAMED(_irq, _name) \
> DEFINE_RES_NAMED((_irq), 1, (_name), IORESOURCE_IRQ)
> #define DEFINE_RES_IRQ(_irq) \
> --
> 2.25.1
>
--
With Best Regards,
Andy Shevchenko
Powered by blists - more mailing lists