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

2018-09-20 Thread Bjorn Andersson
On Tue 28 Aug 02:33 PDT 2018, 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(). > > Signed-off-by: Bartosz

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

2018-08-30 Thread Stephen Boyd
Quoting Bartosz Golaszewski (2018-08-28 02:33:32) > 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 Golaszew

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

2018-08-28 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 --- drivers/clk/x86/clk-pmc-atom.c | 19