X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=drivers%2Fpwm%2Fpwm-cros-ec.c;h=9fffb566af5f94ea699dfc17a7a7940ca7bb38b0;hb=142b507f911c5a502dbb8f603216cb0ea8a79a48;hp=d3115cb0e058ed3abdbda6798d950fd9ce1aae45;hpb=f9a8ee8c8bcd118e800d88772c6457381db45224;p=linux-2.6-microblaze.git diff --git a/drivers/pwm/pwm-cros-ec.c b/drivers/pwm/pwm-cros-ec.c index d3115cb0e058..9fffb566af5f 100644 --- a/drivers/pwm/pwm-cros-ec.c +++ b/drivers/pwm/pwm-cros-ec.c @@ -124,6 +124,9 @@ static int cros_ec_pwm_apply(struct pwm_chip *chip, struct pwm_device *pwm, if (state->period != EC_PWM_MAX_DUTY) return -EINVAL; + if (state->polarity != PWM_POLARITY_NORMAL) + return -EINVAL; + /* * EC doesn't separate the concept of duty cycle and enabled, but * kernel does. Translate.