[lkml]   [2020]   [Jul]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH v3 4/6] gpio: max77620: Don't shadow error code of platform_get_irq()

On Thursday 09 July 2020 01:53 AM, Dmitry Osipenko wrote:
> External email: Use caution opening links or attachments
> The platform_get_irq() returns a positive interrupt number on success and
> negative error code on failure (zero shouldn't ever happen in practice, it
> would produce a noisy warning). Hence let's return the error code directly
> instead of overriding it with -ENODEV.
> Suggested-by: Andy Shevchenko <>
> Signed-off-by: Dmitry Osipenko <>

Looks good to me.
Acked-by: Laxman Dewangan <>

 \ /
  Last update: 2020-07-09 17:03    [W:0.098 / U:1.416 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site