Since commit
2b1c1a5d5148 ("pwm: Use -EINVAL for unsupported polarity")
all drivers implementing the apply callback are unified to return
-EINVAL if an unsupported polarity is requested. Do the same in the
compat code for old-style drivers.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
*/
if (state->polarity != pwm->state.polarity) {
if (!chip->ops->set_polarity)
*/
if (state->polarity != pwm->state.polarity) {
if (!chip->ops->set_polarity)
/*
* Changing the polarity of a running PWM is
/*
* Changing the polarity of a running PWM is