Re: [PATCH] i2c: img-scb: Use devm_platform_ioremap_resource and remove superfluous error message.

From: Andy Shevchenko
Date: Sun May 03 2020 - 12:28:28 EST


On Sun, May 3, 2020 at 4:13 PM Aishwarya Ramakrishnan
<aishwaryarj100@xxxxxxxxx> wrote:
>
> Use the helper function that wraps the calls to
> platform_get_resource() and devm_ioremap_resource()
> together.
>
> The function platform_get_irq can log an error by itself.
> Omit a redundant message for exception handling in the
> calling function.
>
> Suggested by coccinelle.

Should be two patches, each of which with an explanation given. (And
of course you have to mention after cutter line '---' what kind of
tests you performed?)

--
With Best Regards,
Andy Shevchenko