]> git.karo-electronics.de Git - karo-tx-linux.git/commit
pwm: sti: It's now valid for number of PWM channels to be zero
authorLee Jones <lee.jones@linaro.org>
Tue, 16 Aug 2016 09:35:06 +0000 (10:35 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Thu, 8 Sep 2016 08:55:11 +0000 (10:55 +0200)
commit85a834c42a491deed9ac5bca549b93b7a5455d84
tree284fe84bd46ad1f5035d6f63862fb8c09af7f2ba
parentc97267ae831da2711e9592398d490dbd1f4d5ddd
pwm: sti: It's now valid for number of PWM channels to be zero

Setting up the STI PWM IP as capture only, with zero PWM output devices
is a perfectly valid configuration. It is no longer okay to assume that
there must be at least 1 PWM output device. In this patch we make the
default number of PWM output devices zero and only configure channels
explicitly requested.

Reported-by: Peter Griffin <peter.griffin@linaro.org>
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-sti.c