lists.openwall.net | lists / announce owl-users owl-dev john-users john-dev passwdqc-users yescrypt popa3d-users / oss-security kernel-hardening musl sabotage tlsify passwords / crypt-dev xvendor / Bugtraq Full-Disclosure linux-kernel linux-netdev linux-ext4 linux-hardening linux-cve-announce PHC | |
Open Source and information security mailing list archives
| ||
|
Date: Thu, 22 Jan 2015 23:39:05 +0800 From: Chen-Yu Tsai <wens@...e.org> To: Mark Brown <broonie@...nel.org>, Lee Jones <lee.jones@...aro.org>, Rob Herring <robh+dt@...nel.org>, Grant Likely <grant.likely@...aro.org>, Maxime Ripard <maxime.ripard@...e-electrons.com> Cc: Chen-Yu Tsai <wens@...e.org>, devicetree@...r.kernel.org, linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org Subject: [PATCH v9 3/5] regulators: axp20x: Use "clock-frequency" property for dcdc work frequency Since the dcdc regulator work frequency is a property of the regulators DT sub-tree, there is no issue of naming collisions, so we can use the standard "clock-frequency" binding for this. The driver sets a reasonable default value (same as the datasheet), and only 1 dts has the old binding, with the default value. Signed-off-by: Chen-Yu Tsai <wens@...e.org> --- drivers/regulator/axp20x-regulator.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/regulator/axp20x-regulator.c b/drivers/regulator/axp20x-regulator.c index e4331f5e5d7d..990ac453abc8 100644 --- a/drivers/regulator/axp20x-regulator.c +++ b/drivers/regulator/axp20x-regulator.c @@ -186,8 +186,10 @@ static int axp20x_regulator_parse_dt(struct platform_device *pdev) if (!regulators) { dev_warn(&pdev->dev, "regulators node not found\n"); } else { - dcdcfreq = 1500; - of_property_read_u32(regulators, "x-powers,dcdc-freq", &dcdcfreq); + dcdcfreq = 1500000; + of_property_read_u32(regulators, "clock-frequency", &dcdcfreq); + /* axp20x_set_dcdc_freq() takes kHZ */ + dcdcfreq /= 1000; ret = axp20x_set_dcdc_freq(pdev, dcdcfreq); if (ret < 0) { dev_err(&pdev->dev, "Error setting dcdc frequency: %d\n", ret); -- 2.1.4 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@...r.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists