Re: [PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Andy Shevchenko
On Mon, Sep 24, 2018 at 01:44:19PM +0200, Bartosz Golaszewski wrote: > pon., 24 wrz 2018 o 13:23 Andy Shevchenko > napisał(a): > > > > On Mon, Sep 24, 2018 at 12:11:50PM +0200, Bartosz Golaszewski wrote: > > > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > > > an example

Re: [PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Andy Shevchenko
On Mon, Sep 24, 2018 at 01:44:19PM +0200, Bartosz Golaszewski wrote: > pon., 24 wrz 2018 o 13:23 Andy Shevchenko > napisał(a): > > > > On Mon, Sep 24, 2018 at 12:11:50PM +0200, Bartosz Golaszewski wrote: > > > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > > > an example

Re: [PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Bartosz Golaszewski
pon., 24 wrz 2018 o 13:23 Andy Shevchenko napisał(a): > > On Mon, Sep 24, 2018 at 12:11:50PM +0200, Bartosz Golaszewski wrote: > > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > > an example of how to use this new routine to shrink driver code. > > > > While we're at it:

Re: [PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Bartosz Golaszewski
pon., 24 wrz 2018 o 13:23 Andy Shevchenko napisał(a): > > On Mon, Sep 24, 2018 at 12:11:50PM +0200, Bartosz Golaszewski wrote: > > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > > an example of how to use this new routine to shrink driver code. > > > > While we're at it:

Re: [PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Andy Shevchenko
On Mon, Sep 24, 2018 at 12:11:50PM +0200, Bartosz Golaszewski wrote: > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > an example of how to use this new routine to shrink driver code. > > While we're at it: replace a call to kcalloc() with devm_kcalloc(). > @@ -352,8

Re: [PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Andy Shevchenko
On Mon, Sep 24, 2018 at 12:11:50PM +0200, Bartosz Golaszewski wrote: > Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as > an example of how to use this new routine to shrink driver code. > > While we're at it: replace a call to kcalloc() with devm_kcalloc(). > @@ -352,8

[PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Bartosz Golaszewski
Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as an example of how to use this new routine to shrink driver code. While we're at it: replace a call to kcalloc() with devm_kcalloc(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson

[PATCH v3 4/4] clk: pmc-atom: use devm_kstrdup_const()

2018-09-24 Thread Bartosz Golaszewski
Use devm_kstrdup_const() in the pmc-atom driver. This mostly serves as an example of how to use this new routine to shrink driver code. While we're at it: replace a call to kcalloc() with devm_kcalloc(). Signed-off-by: Bartosz Golaszewski Reviewed-by: Stephen Boyd Reviewed-by: Bjorn Andersson