pwm: Make the PWM_POLARITY flag in DTB optional
authorLothar Wassmann <LW@KARO-electronics.de>
Sun, 29 Jan 2017 21:54:13 +0000 (22:54 +0100)
committerThierry Reding <thierry.reding@gmail.com>
Mon, 30 Jan 2017 08:13:34 +0000 (09:13 +0100)
commit42883cbc086b3f7aca9f1754f2d570af922825fc
treed018cdca3c54ecb93f5e58786432edcb5040a2f3
parentf2dafc095018fcc6a71793cfefdd490c9f1c63be
pwm: Make the PWM_POLARITY flag in DTB optional

Change the PWM chip driver registration so that a chip driver that
supports polarity inversion can still be used with DTBs that don't
provide the polarity flag as part of the specifier.

This is done to provide polarity inversion support for the pwm-imx
driver without having to modify all existing DTS files.

Signed-off-by: Lothar Wassmann <LW@KARO-electronics.de>
Signed-off-by: Bhuvanchandra DV <bhuvanchandra.dv@toradex.com>
Suggested-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Lukasz Majewski <l.majewski@majess.pl>
Reviewed-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
drivers/pwm/core.c