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.

clk: qcom: hfpll: Allow matching pdata

HFPLL driver can be used to drive PLLs also on different SoCs like MSM8976
On MSM8976 each PLL gets it own different configuration,
add matching pdata to driver to support multiple configurations.

Signed-off-by: Adam Skladowski <a39.skl@gmail.com>
Reviewed-by: Konrad Dybcio <konrad.dybcio@linaro.org>
Link: https://lore.kernel.org/r/20230812112534.8610-4-a39.skl@gmail.com
Signed-off-by: Bjorn Andersson <andersson@kernel.org>

authored by

Adam Skladowski and committed by
Bjorn Andersson
34e000c0 500a4609

+3 -2
+3 -2
drivers/clk/qcom/hfpll.c
··· 6 6 #include <linux/module.h> 7 7 #include <linux/platform_device.h> 8 8 #include <linux/of.h> 9 + #include <linux/of_device.h> 9 10 #include <linux/clk.h> 10 11 #include <linux/clk-provider.h> 11 12 #include <linux/regmap.h> ··· 33 32 }; 34 33 35 34 static const struct of_device_id qcom_hfpll_match_table[] = { 36 - { .compatible = "qcom,hfpll" }, 35 + { .compatible = "qcom,hfpll", .data = &hdata }, 37 36 { } 38 37 }; 39 38 MODULE_DEVICE_TABLE(of, qcom_hfpll_match_table); ··· 84 83 85 84 init.parent_data = &pdata; 86 85 87 - h->d = &hdata; 86 + h->d = of_device_get_match_data(&pdev->dev); 88 87 h->clkr.hw.init = &init; 89 88 spin_lock_init(&h->lock); 90 89