Re: [PATCH] mailbox: tegra-hsp: use devm_kstrdup_const()

2018-11-14 Thread Bartosz Golaszewski
wt., 13 lis 2018 o 22:11 Thierry Reding napisaƂ(a): > > On Thu, Nov 08, 2018 at 05:46:10PM +0100, Bartosz Golaszewski wrote: > > Use devm_kstrdup_const() in the tegra-hsp driver. This mostly serves as > > an example of how to use this new routine to shrink driver code. > > > > Also use devm_kzallo

Re: [PATCH] mailbox: tegra-hsp: use devm_kstrdup_const()

2018-11-13 Thread Thierry Reding
On Thu, Nov 08, 2018 at 05:46:10PM +0100, Bartosz Golaszewski wrote: > Use devm_kstrdup_const() in the tegra-hsp driver. This mostly serves as > an example of how to use this new routine to shrink driver code. > > Also use devm_kzalloc() instead of regular kzalloc() to shrink the > driver even mor

[PATCH] mailbox: tegra-hsp: use devm_kstrdup_const()

2018-11-08 Thread Bartosz Golaszewski
Use devm_kstrdup_const() in the tegra-hsp driver. This mostly serves as an example of how to use this new routine to shrink driver code. Also use devm_kzalloc() instead of regular kzalloc() to shrink the driver even more. Doorbell objects are only removed in the driver's remove callback so it's s