]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb99ee50b56eda9ccb0a6963c342a3f4f17f15d4d
treecff208dac5ef80c76eaab0d0ee791df1ef2c59a8
parentbfebbfb2dc53d83a4690e551ee15027b48c1cf24
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