pwm: sun4i: Initialize variables before use
authorThierry Reding <thierry.reding@gmail.com>
Mon, 20 Jan 2020 14:22:37 +0000 (15:22 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 20 Jan 2020 14:22:37 +0000 (15:22 +0100)
commit413c2a110d649a3a313ee91920e3d9373b9f2045
treecff208dac5ef80c76eaab0d0ee791df1ef2c59a8
parent0c73201c5c094256236b129799ab6761b491d8cd
pwm: sun4i: Initialize variables before use

GCC can't always determine that the duty, period and prescaler values
are initialized when returning from sun4i_pwm_calculate(), so help out a
little by initializing them to 0.

Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sun4i.c