Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Lee Jones and committed by
Mark Brown
60cb65eb b343e08f

+1 -1
+1 -1
drivers/regulator/pwm-regulator.c
··· 163 163 { 164 164 struct device_node *np = pdev->dev.of_node; 165 165 struct pwm_voltages *duty_cycle_table; 166 - int length = 0; 166 + unsigned int length = 0; 167 167 int ret; 168 168 169 169 of_find_property(np, "voltage-table", &length);