Commit 60cb65eb authored by Lee Jones's avatar Lee Jones Committed by Mark Brown

regulator: pwm-regulator: Fix ' comparison between signed and unsigned integer' warning

drivers/regulator/pwm-regulator.c:
  In function ‘pwm_regulator_init_table’:
drivers/regulator/pwm-regulator.c:171:14:
  warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
Signed-off-by: default avatarLee Jones <lee.jones@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent b343e08f
......@@ -163,7 +163,7 @@ static int pwm_regulator_init_table(struct platform_device *pdev,
{
struct device_node *np = pdev->dev.of_node;
struct pwm_voltages *duty_cycle_table;
int length = 0;
unsigned int length = 0;
int ret;
of_find_property(np, "voltage-table", &length);
......
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