diff options
author | Lee Jones <lee.jones@linaro.org> | 2015-07-10 03:45:36 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-07-10 14:34:06 -0400 |
commit | 60cb65ebf49e6db114c3efeb3971064a6ddbea0e (patch) | |
tree | f224884c7c7819ff8b25d98b7a661fd227739993 | |
parent | b343e08f3c5623d12829ad4965dd4c4e50f86fa2 (diff) |
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: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | drivers/regulator/pwm-regulator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/regulator/pwm-regulator.c b/drivers/regulator/pwm-regulator.c index 331b85148680..fc3166dfcbfa 100644 --- a/drivers/regulator/pwm-regulator.c +++ b/drivers/regulator/pwm-regulator.c | |||
@@ -163,7 +163,7 @@ static int pwm_regulator_init_table(struct platform_device *pdev, | |||
163 | { | 163 | { |
164 | struct device_node *np = pdev->dev.of_node; | 164 | struct device_node *np = pdev->dev.of_node; |
165 | struct pwm_voltages *duty_cycle_table; | 165 | struct pwm_voltages *duty_cycle_table; |
166 | int length = 0; | 166 | unsigned int length = 0; |
167 | int ret; | 167 | int ret; |
168 | 168 | ||
169 | of_find_property(np, "voltage-table", &length); | 169 | of_find_property(np, "voltage-table", &length); |