Searched refs:clk_pwms (Results 1 – 1 of 1) sorted by relevance
58 struct clk **clk_pwms; member90 ret = clk_prepare_enable(pc->clk_pwms[pwm->hwpwm]); in pwm_mediatek_clk_enable()109 clk_disable_unprepare(pc->clk_pwms[pwm->hwpwm]); in pwm_mediatek_clk_disable()141 do_div(resolution, clk_get_rate(pc->clk_pwms[pwm->hwpwm])); in pwm_mediatek_config()251 pc->clk_pwms = devm_kmalloc_array(&pdev->dev, pc->soc->num_pwms, in pwm_mediatek_probe()252 sizeof(*pc->clk_pwms), GFP_KERNEL); in pwm_mediatek_probe()253 if (!pc->clk_pwms) in pwm_mediatek_probe()271 pc->clk_pwms[i] = devm_clk_get(&pdev->dev, name); in pwm_mediatek_probe()272 if (IS_ERR(pc->clk_pwms[i])) in pwm_mediatek_probe()273 return dev_err_probe(&pdev->dev, PTR_ERR(pc->clk_pwms[i]), in pwm_mediatek_probe()