Re: [PATCH v15 mfd 7/9] resource: add define macro for register address resources

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, Aug 3, 2022 at 7:47 AM Colin Foster
<colin.foster@xxxxxxxxxxxxxxxx> 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@xxxxxxxxx>

> Signed-off-by: Colin Foster <colin.foster@xxxxxxxxxxxxxxxx>
> Reviewed-by: Vladimir Oltean <vladimir.oltean@xxxxxxx>
> ---
>
> (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



[Index of Archives]     [Linux SPI]     [Linux Kernel]     [Linux ARM (vger)]     [Linux ARM MSM]     [Linux Omap]     [Linux Arm]     [Linux Tegra]     [Fedora ARM]     [Linux for Samsung SOC]     [eCos]     [Linux Fastboot]     [Gcc Help]     [Git]     [DCCP]     [IETF Announce]     [Security]     [Linux MIPS]     [Yosemite Campsites]

  Powered by Linux