Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: mstar: msc313-mpll: Fix format specifier

The output dividers are unsigned int so the format specifier
should have been %u not %d.

Signed-off-by: Daniel Palmer <daniel@0x0f.com>
Link: https://lore.kernel.org/r/20210215115710.3762276-2-daniel@0x0f.com
Signed-off-by: Stephen Boyd <sboyd@kernel.org>

authored by

Daniel Palmer and committed by
Stephen Boyd
d90afa62 93c89f03

+1 -1
+1 -1
drivers/clk/mstar/clk-msc313-mpll.c
··· 123 123 mpll->clk_data->hws[0] = &mpll->clk_hw; 124 124 125 125 for (i = 0; i < ARRAY_SIZE(output_dividers); i++) { 126 - outputname = devm_kasprintf(dev, GFP_KERNEL, "%s_div_%d", 126 + outputname = devm_kasprintf(dev, GFP_KERNEL, "%s_div_%u", 127 127 clk_init.name, output_dividers[i]); 128 128 if (!outputname) 129 129 return -ENOMEM;