Re: [PATCH v5 02/10] pinctrl: generic: Add macros to unpack properties

From: Andy Shevchenko
Date: Fri Apr 28 2017 - 12:23:28 EST


On Fri, Apr 28, 2017 at 11:16 AM, Linus Walleij
<linus.walleij@xxxxxxxxxx> wrote:
> On Thu, Apr 27, 2017 at 10:19 AM, Jacopo Mondi
> <jacopo+renesas@xxxxxxxxxx> wrote:

> But why.
>
> I have these two static inlines just below your new macros:

+1.

> We generally prefer static inlines over macros because they are easier
> to read.

Not only. It adds type checking as well AFAIUC.

--
With Best Regards,
Andy Shevchenko