Re: [RESEND PATCH v5 3/5] drivers core: allow probe_err accept integer and pointer types
From: Andrzej Hajda
Date: Thu Jun 25 2020 - 06:19:54 EST
On 25.06.2020 10:41, Andy Shevchenko wrote:
> On Wed, Jun 24, 2020 at 10:40 PM Andrzej Hajda <a.hajda@xxxxxxxxxxx> wrote:
>> On 24.06.2020 17:16, Robin Murphy wrote:
> ...
>
>> I have proposed such thing in my previous iteration[1], except it was
>> macro because of variadic arguments.
> You may have a function with variadic arguments. Macros are beasts and
> make in some cases more harm than help.
What harm it can do in this particular case?
With macro we have simple straightforward one-liner, with quite good
type-checking.
Maybe I am wrong, but I suspect creation of variadic function would
require much more coding.
Regards
Andrzej