Commit bbc7ba0f authored by Tom Rix's avatar Tom Rix Committed by Mark Brown

regulator: cleanup comments

For spdx
Remove leading space, add space after //

Replacements
overriden to overridden
Calulate to Calculate
addional to additional
regulatior to regulator
devive to device
Signed-off-by: default avatarTom Rix <trix@redhat.com>
Acked-by: default avatarCharles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220305162438.689442-1-trix@redhat.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 80c05665
...@@ -459,7 +459,7 @@ static int max8973_thermal_read_temp(void *data, int *temp) ...@@ -459,7 +459,7 @@ static int max8973_thermal_read_temp(void *data, int *temp)
return ret; return ret;
} }
/* +1 degC to trigger cool devive */ /* +1 degC to trigger cool device */
if (val & MAX77621_CHIPID_TJINT_S) if (val & MAX77621_CHIPID_TJINT_S)
*temp = mchip->junction_temp_warning + 1000; *temp = mchip->junction_temp_warning + 1000;
else else
......
//SPDX-License-Identifier: GPL-2.0 // SPDX-License-Identifier: GPL-2.0
/* /*
* Copyright (C) 2017 Spreadtrum Communications Inc. * Copyright (C) 2017 Spreadtrum Communications Inc.
*/ */
......
...@@ -42,7 +42,7 @@ ...@@ -42,7 +42,7 @@
/** /**
* struct ti_abb_info - ABB information per voltage setting * struct ti_abb_info - ABB information per voltage setting
* @opp_sel: one of TI_ABB macro * @opp_sel: one of TI_ABB macro
* @vset: (optional) vset value that LDOVBB needs to be overriden with. * @vset: (optional) vset value that LDOVBB needs to be overridden with.
* *
* Array of per voltage entries organized in the same order as regulator_desc's * Array of per voltage entries organized in the same order as regulator_desc's
* volt_table list. (selector is used to index from this array) * volt_table list. (selector is used to index from this array)
...@@ -484,7 +484,7 @@ static int ti_abb_init_timings(struct device *dev, struct ti_abb *abb) ...@@ -484,7 +484,7 @@ static int ti_abb_init_timings(struct device *dev, struct ti_abb *abb)
/* Calculate cycle rate */ /* Calculate cycle rate */
cycle_rate = DIV_ROUND_CLOSEST(clock_cycles * 10, clk_rate); cycle_rate = DIV_ROUND_CLOSEST(clock_cycles * 10, clk_rate);
/* Calulate SR2_WTCNT_VALUE */ /* Calculate SR2_WTCNT_VALUE */
sr2_wt_cnt_val = DIV_ROUND_CLOSEST(abb->settling_time * 10, cycle_rate); sr2_wt_cnt_val = DIV_ROUND_CLOSEST(abb->settling_time * 10, cycle_rate);
dev_dbg(dev, "%s: Clk_rate=%ld, sr2_cnt=0x%08x\n", __func__, dev_dbg(dev, "%s: Clk_rate=%ld, sr2_cnt=0x%08x\n", __func__,
...@@ -688,7 +688,7 @@ MODULE_DEVICE_TABLE(of, ti_abb_of_match); ...@@ -688,7 +688,7 @@ MODULE_DEVICE_TABLE(of, ti_abb_of_match);
* @pdev: ABB platform device * @pdev: ABB platform device
* *
* Initializes an individual ABB LDO for required Body-Bias. ABB is used to * Initializes an individual ABB LDO for required Body-Bias. ABB is used to
* addional bias supply to SoC modules for power savings or mandatory stability * additional bias supply to SoC modules for power savings or mandatory stability
* configuration at certain Operating Performance Points(OPPs). * configuration at certain Operating Performance Points(OPPs).
* *
* Return: 0 on success or appropriate error value when fails * Return: 0 on success or appropriate error value when fails
......
...@@ -1112,7 +1112,7 @@ static int wm8350_regulator_probe(struct platform_device *pdev) ...@@ -1112,7 +1112,7 @@ static int wm8350_regulator_probe(struct platform_device *pdev)
if (pdev->id < WM8350_DCDC_1 || pdev->id > WM8350_ISINK_B) if (pdev->id < WM8350_DCDC_1 || pdev->id > WM8350_ISINK_B)
return -ENODEV; return -ENODEV;
/* do any regulatior specific init */ /* do any regulator specific init */
switch (pdev->id) { switch (pdev->id) {
case WM8350_DCDC_1: case WM8350_DCDC_1:
val = wm8350_reg_read(wm8350, WM8350_DCDC1_LOW_POWER); val = wm8350_reg_read(wm8350, WM8350_DCDC1_LOW_POWER);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment