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

Configure Feed

Select the types of activity you want to include in your feed.

pwm: pwm-mediatek: Beautify error messages text

As a cherry-on-top cleanup, make error messages clearer to read
by changing instances of "clock: XXXX failed" to a more readable
"Failed to get XXXX clock". Also add "of" to unsupported period
error.

This is purely a cosmetic change; no "real" functional changes.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Macpaul Lin <macpaul.lin@mediatek.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>

authored by

AngeloGioacchino Del Regno and committed by
Thierry Reding
4d690e50 446925f1

+4 -4
+4 -4
drivers/pwm/pwm-mediatek.c
··· 146 146 147 147 if (clkdiv > PWM_CLK_DIV_MAX) { 148 148 pwm_mediatek_clk_disable(chip, pwm); 149 - dev_err(chip->dev, "period %d not supported\n", period_ns); 149 + dev_err(chip->dev, "period of %d ns not supported\n", period_ns); 150 150 return -EINVAL; 151 151 } 152 152 ··· 229 229 pc->clk_top = devm_clk_get(&pdev->dev, "top"); 230 230 if (IS_ERR(pc->clk_top)) 231 231 return dev_err_probe(&pdev->dev, PTR_ERR(pc->clk_top), 232 - "clock: top failed\n"); 232 + "Failed to get top clock\n"); 233 233 234 234 pc->clk_main = devm_clk_get(&pdev->dev, "main"); 235 235 if (IS_ERR(pc->clk_main)) 236 236 return dev_err_probe(&pdev->dev, PTR_ERR(pc->clk_main), 237 - "clock: main failed\n"); 237 + "Failed to get main clock\n"); 238 238 239 239 for (i = 0; i < pc->soc->num_pwms; i++) { 240 240 char name[8]; ··· 244 244 pc->clk_pwms[i] = devm_clk_get(&pdev->dev, name); 245 245 if (IS_ERR(pc->clk_pwms[i])) 246 246 return dev_err_probe(&pdev->dev, PTR_ERR(pc->clk_pwms[i]), 247 - "clock: %s failed\n", name); 247 + "Failed to get %s clock\n", name); 248 248 } 249 249 250 250 pc->chip.dev = &pdev->dev;