gpio: mvebu/pwm: Refuse requests with inverted polarity
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Wed, 11 May 2022 07:58:56 +0000 (09:58 +0200)
committerBartosz Golaszewski <brgl@bgdev.pl>
Fri, 20 May 2022 14:46:56 +0000 (16:46 +0200)
commit3ecb10175b1f776f076553c24e2689e42953fef5
treed696d5dd2ab63fa66df71b9585deb9469ccbfe7f
parent9bf3ac466faa83d51a8fe9212131701e58fdef74
gpio: mvebu/pwm: Refuse requests with inverted polarity

The driver doesn't take struct pwm_state::polarity into account when
configuring the hardware, so refuse requests for inverted polarity.

Fixes: 757642f9a584 ("gpio: mvebu: Add limited PWM support")
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpio-mvebu.c