]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/pwm/pwm-imx27.c
drivers/base/memory.c: don't access uninitialized memmaps in soft_offline_page_store()
[linux.git] / drivers / pwm / pwm-imx27.c
index 434a351fb626be9a790f1a8cafa1e77595bd9dfd..ae11d8577f1866030173c8e47d513d12da590aae 100644 (file)
@@ -3,6 +3,10 @@
  * simple driver for PWM (Pulse Width Modulator) controller
  *
  * Derived from pxa PWM driver by eric miao <eric.miao@marvell.com>
+ *
+ * Limitations:
+ * - When disabled the output is driven to 0 independent of the configured
+ *   polarity.
  */
 
 #include <linux/bitfield.h>
@@ -205,7 +209,7 @@ static void pwm_imx27_wait_fifo_slot(struct pwm_chip *chip,
 }
 
 static int pwm_imx27_apply(struct pwm_chip *chip, struct pwm_device *pwm,
-                          struct pwm_state *state)
+                          const struct pwm_state *state)
 {
        unsigned long period_cycles, duty_cycles, prescale;
        struct pwm_imx27_chip *imx = to_pwm_imx27_chip(chip);