Skip to content
Snippets Groups Projects
Commit c40d48bb authored by Mark Kettenis's avatar Mark Kettenis Committed by Simon Glass
Browse files

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: default avatarMark Kettenis <kettenis@openbsd.org>
parent d1bf69d8
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment