Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-05 Thread Vladimir Zapolskiy
On 04/02/2019 10:01 PM, Guenter Roeck wrote: > Use devm_platform_ioremap_resource to reduce source code size, > improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patch. > > @r@ > identifier res, pdev;

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-04 Thread Patrice CHOTARD
Hi On 4/2/19 9:01 PM, Guenter Roeck wrote: > Use devm_platform_ioremap_resource to reduce source code size, > improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patch. > > @r@ > identifier res, pdev; >

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-03 Thread Florian Fainelli
On 4/2/2019 12:01 PM, Guenter Roeck wrote: > Use devm_platform_ioremap_resource to reduce source code size, > improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patch. > [snip] For: >

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-03 Thread Thierry Reding
On Tue, Apr 02, 2019 at 12:01:53PM -0700, Guenter Roeck wrote: [...] > drivers/watchdog/tegra_wdt.c | 4 +--- Acked-by: Thierry Reding signature.asc Description: PGP signature

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-03 Thread Michal Simek
On 02. 04. 19 21:01, Guenter Roeck wrote: > Use devm_platform_ioremap_resource to reduce source code size, > improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patch. > > @r@ > identifier res, pdev; >

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-03 Thread Maxime Ripard
On Tue, Apr 02, 2019 at 12:01:53PM -0700, Guenter Roeck wrote: > Use devm_platform_ioremap_resource to reduce source code size, > improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patch. > > @r@ >

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-02 Thread Linus Walleij
On Wed, Apr 3, 2019 at 2:02 AM Guenter Roeck wrote: > Use devm_platform_ioremap_resource to reduce source code size, > improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patch. > > @r@ > identifier res,

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-02 Thread Joel Stanley
On Tue, 2 Apr 2019 at 19:02, Guenter Roeck wrote: > > Use devm_platform_ioremap_resource to reduce source code size, This is a strange name for a function that doesn't take nor return a 'struct resource'. However, the intent is welcome as many drivers do redundant checking of the

Re: [PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-02 Thread Alexandre Belloni
On 02/04/2019 12:01:53-0700, Guenter Roeck wrote: > Use devm_platform_ioremap_resource to reduce source code size, > improve readability, and reduce the likelyhood of bugs. > > The conversion was done automatically with coccinelle using the > following semantic patch. > > @r@ > identifier res,

[PATCH] watchdog: Convert to use devm_platform_ioremap_resource

2019-04-02 Thread Guenter Roeck
Use devm_platform_ioremap_resource to reduce source code size, improve readability, and reduce the likelyhood of bugs. The conversion was done automatically with coccinelle using the following semantic patch. @r@ identifier res, pdev; expression a; expression index; expression e; @@ <+... - res