Commit d0841232 authored by Zhang Jiaming's avatar Zhang Jiaming Committed by Mark Brown

regulator: Fix parameter declaration and spelling mistake.

Use Complete data type declaration of 'sel' in ti_abb_set_voltage_sel().
Fix spelling of 'are'nt' in comments.
Signed-off-by: default avatarZhang Jiaming <jiaming@nfschina.com>
Link: https://lore.kernel.org/r/20220705071445.21124-1-jiaming@nfschina.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 38493f00
...@@ -309,7 +309,7 @@ static int ti_abb_set_opp(struct regulator_dev *rdev, struct ti_abb *abb, ...@@ -309,7 +309,7 @@ static int ti_abb_set_opp(struct regulator_dev *rdev, struct ti_abb *abb,
* *
* Return: 0 on success or appropriate error value when fails * Return: 0 on success or appropriate error value when fails
*/ */
static int ti_abb_set_voltage_sel(struct regulator_dev *rdev, unsigned sel) static int ti_abb_set_voltage_sel(struct regulator_dev *rdev, unsigned int sel)
{ {
const struct regulator_desc *desc = rdev->desc; const struct regulator_desc *desc = rdev->desc;
struct ti_abb *abb = rdev_get_drvdata(rdev); struct ti_abb *abb = rdev_get_drvdata(rdev);
...@@ -344,7 +344,7 @@ static int ti_abb_set_voltage_sel(struct regulator_dev *rdev, unsigned sel) ...@@ -344,7 +344,7 @@ static int ti_abb_set_voltage_sel(struct regulator_dev *rdev, unsigned sel)
info = &abb->info[sel]; info = &abb->info[sel];
/* /*
* When Linux kernel is starting up, we are'nt sure of the * When Linux kernel is starting up, we aren't sure of the
* Bias configuration that bootloader has configured. * Bias configuration that bootloader has configured.
* So, we get to know the actual setting the first time * So, we get to know the actual setting the first time
* we are asked to transition. * we are asked to transition.
......
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