commit | 416b6c57f95d3490ab589935c48bb5702374ad9c | [log] [tgz] |
---|---|---|
author | Mark Kettenis <kettenis@openbsd.org> | Sat May 13 20:17:05 2017 +0200 |
committer | Simon Glass <sjg@chromium.org> | Wed Jun 07 07:29:19 2017 -0600 |
tree | 15726b12eb94dbb375d75638f6e6a3411e0455a7 | |
parent | a263bcc5e7bb95832d89a66130a3091373401f55 [diff] |
regulator: pwm: Fix handling of missing init voltage Since priv->init_voltage is an unsigned integer it can never be negative. So the current code fails to detect a missing 'regulator-init-microvolt' property and instead misconfigures the PWM device. Fix this by making the relevant members of 'struct pwm_regulator_info' signed integers. Signed-off-by: Mark Kettenis <kettenis@openbsd.org>