pwm: lpss: Allow duty cycle to be 0
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Sat, 28 Jan 2017 15:10:40 +0000 (17:10 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Jan 2017 07:13:39 +0000 (08:13 +0100)
commitb5c050c719922901891bdd8580d224e2a0035db5
tree5cb36aac5ece4729626dd424c6e13a781991f33d
parent684309e5043efaaa94d9b4e65f53f7fdde1f6675
pwm: lpss: Allow duty cycle to be 0

A duty cycle is represented by values [0..<period>] which reflects [0%..100%].
0% of the duty cycle means always off (logical "0") on output. Allow this in
the driver.

Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-lpss.c