[lkml]   [2019]   [Dec]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH 1/2] pinctrl: mvebu: armada-37xx: use use platform api
Hi Andrew,

On Wed, Dec 18, 2019 at 12:00 PM Andrew Lunn <> wrote:

> 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().

Yes, I think that returning the error like:

dev_err(dev, "Couldn't determine irq count: %d\n", nr_irq_parent);

would make the code cleaner.

Maybe just a matter of taste though ;-)

 \ /
  Last update: 2019-12-18 16:11    [W:0.054 / U:1.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site