aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/dwc/pci-layerscape.c
diff options
context:
space:
mode:
authorChristophe JAILLET <[email protected]>2023-11-18 07:55:48 +0000
committerKrzysztof Wilczyński <[email protected]>2023-12-17 03:02:33 +0000
commit9f5077ef8f8157270f51f4ebd782c985d56d33c6 (patch)
treecee56717e2bda0d48fa95cccbc949ef32d2180a3 /drivers/pci/controller/dwc/pci-layerscape.c
parentLinux 6.7-rc1 (diff)
downloadkernel-9f5077ef8f8157270f51f4ebd782c985d56d33c6.tar.gz
kernel-9f5077ef8f8157270f51f4ebd782c985d56d33c6.zip
PCI: kirin: Use devm_kasprintf() to dynamically allocate clock names
Use devm_kasprintf() instead of open coding it. This saves the need of an intermediate buffer. There was also no reason to use devm_kstrdup_const() as string is known to be constant. [kwilczynski: commit log, and add missing Reviewed-by tag] Link: https://lore.kernel.org/linux-pci/1bad6879083a7d836c8a47418a0afa22485e8f69.1700294127.git.christophe.jaillet@wanadoo.fr Signed-off-by: Christophe JAILLET <[email protected]> Signed-off-by: Krzysztof Wilczyński <[email protected]> Reviewed-by: Ilpo Järvinen <[email protected]>
Diffstat (limited to 'drivers/pci/controller/dwc/pci-layerscape.c')
0 files changed, 0 insertions, 0 deletions