Skip to content

Commit

Permalink
regulator: max8973: Fix up control flag option for bias control
Browse files Browse the repository at this point in the history
The control flag for the bias control is MAX8973_CONTROL_BIAS_ENABLE
rather than MAX8973_BIAS_ENABLE which is macro for the bits in
register.

Fix this typo.

Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Laxman Dewangan authored and Mark Brown committed Jul 7, 2015
1 parent d770e55 commit 127e106
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/regulator/max8973-regulator.c
Original file line number Diff line number Diff line change
Expand Up @@ -450,7 +450,7 @@ static struct max8973_regulator_platform_data *max8973_parse_dt(
pdata->control_flags |= MAX8973_CONTROL_FREQ_SHIFT_9PER_ENABLE;

if (of_property_read_bool(np, "maxim,enable-bias-control"))
pdata->control_flags |= MAX8973_BIAS_ENABLE;
pdata->control_flags |= MAX8973_CONTROL_BIAS_ENABLE;

return pdata;
}
Expand Down

0 comments on commit 127e106

Please sign in to comment.