pwm: atmel-hlcdc: Fix default PWM polarity
authorBoris Brezillon <boris.brezillon@free-electrons.com>
Tue, 17 May 2016 09:12:32 +0000 (11:12 +0200)
committerThierry Reding <thierry.reding@gmail.com>
Tue, 14 Jun 2016 08:51:45 +0000 (10:51 +0200)
commitcc51846ba81ca179a3be20f6313e3b72531888c1
treec62812f5b0210cb325645b082d7c7f9558ddcf9e
parentfe5aa34d6eb9c4d34071845f70f3714b41c8a77d
pwm: atmel-hlcdc: Fix default PWM polarity

The PWM device exposed by the HLCDC IP is configured with an inverted
polarity by default. Registering the PWM chip with the normal polarity
was not a problem before commit 42e8992c58d4 ("pwm: Add core
infrastructure to allow atomic updates") because the ->set_polarity()
hook was called no matter the current polarity state, but this is no longer
the case.

Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/pwm-atmel-hlcdc.c