[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20191218145955.GE26938@lunn.ch>
Date: Wed, 18 Dec 2019 15:59:55 +0100
From: Andrew Lunn <andrew@...n.ch>
To: Fabio Estevam <festevam@...il.com>
Cc: Peng Fan <peng.fan@....com>,
"jason@...edaemon.net" <jason@...edaemon.net>,
"gregory.clement@...tlin.com" <gregory.clement@...tlin.com>,
"sebastian.hesselbarth@...il.com" <sebastian.hesselbarth@...il.com>,
"linus.walleij@...aro.org" <linus.walleij@...aro.org>,
"mripard@...nel.org" <mripard@...nel.org>,
"wens@...e.org" <wens@...e.org>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH 1/2] pinctrl: mvebu: armada-37xx: use use platform api
On Wed, Dec 18, 2019 at 09:57:57AM -0300, Fabio Estevam wrote:
> Hi Peng,
>
> On Wed, Dec 18, 2019 at 9:53 AM Peng Fan <peng.fan@....com> wrote:
>
> > Please see:
> > https://lkml.org/lkml/2019/12/4/64
+ dev_err(dev, "Couldn't determine irq count: %pe\n",
+ ERR_PTR(nr_irq_parent));
> Still think it makes things more complicated than simply returning the
> error code directly.
Hi Fabio
Look closer. This is not about returning an error, it is about
printing an error.
I think the API could better. A %ie formatter would make a lot of
sense, so avoiding the ERR_PTR().
Andrew
Powered by blists - more mailing lists