Lines Matching defs:pwm

8  * This driver is a complete rewrite of the former pwm-twl6030.c authorded by:
15 #include <linux/pwm.h>
58 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm,
81 base = pwm->hwpwm * 2 + TWL4030_PWMA_REG;
87 dev_err(chip->dev, "%s: Failed to configure PWM\n", pwm->label);
92 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm)
101 dev_err(chip->dev, "%s: Failed to read LEDEN\n", pwm->label);
105 val |= TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS);
109 dev_err(chip->dev, "%s: Failed to enable PWM\n", pwm->label);
117 struct pwm_device *pwm)
126 dev_err(chip->dev, "%s: Failed to read LEDEN\n", pwm->label);
130 val &= ~TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS);
134 dev_err(chip->dev, "%s: Failed to disable PWM\n", pwm->label);
140 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm,
152 dev_err(chip->dev, "%s: Failed to configure PWM\n", pwm->label);
157 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm)
167 pwm->label);
176 dev_err(chip->dev, "%s: Failed to enable PWM\n", pwm->label);
184 struct pwm_device *pwm)
194 pwm->label);
203 dev_err(chip->dev, "%s: Failed to disable PWM\n", pwm->label);
209 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm)
219 pwm->label);
228 dev_err(chip->dev, "%s: Failed to request PWM\n", pwm->label);
235 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm)
245 pwm->label);
254 dev_err(chip->dev, "%s: Failed to free PWM\n", pwm->label);