[go: nahoru, domu]

Lines Matching refs:pwm

7  * This driver is a complete rewrite of the former pwm-twl6030.c authorded by:
26 #include <linux/pwm.h>
69 static int twl4030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm,
92 base = pwm->hwpwm * 2 + TWL4030_PWMA_REG;
98 dev_err(chip->dev, "%s: Failed to configure PWM\n", pwm->label);
103 static int twl4030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm)
112 dev_err(chip->dev, "%s: Failed to read LEDEN\n", pwm->label);
116 val |= TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS);
120 dev_err(chip->dev, "%s: Failed to enable PWM\n", pwm->label);
128 struct pwm_device *pwm)
137 dev_err(chip->dev, "%s: Failed to read LEDEN\n", pwm->label);
141 val &= ~TWL4030_LED_TOGGLE(pwm->hwpwm, TWL4030_LED_PINS);
145 dev_err(chip->dev, "%s: Failed to disable PWM\n", pwm->label);
151 static int twl6030_pwmled_config(struct pwm_chip *chip, struct pwm_device *pwm,
163 dev_err(chip->dev, "%s: Failed to configure PWM\n", pwm->label);
168 static int twl6030_pwmled_enable(struct pwm_chip *chip, struct pwm_device *pwm)
178 pwm->label);
187 dev_err(chip->dev, "%s: Failed to enable PWM\n", pwm->label);
195 struct pwm_device *pwm)
205 pwm->label);
214 dev_err(chip->dev, "%s: Failed to disable PWM\n", pwm->label);
220 static int twl6030_pwmled_request(struct pwm_chip *chip, struct pwm_device *pwm)
230 pwm->label);
239 dev_err(chip->dev, "%s: Failed to request PWM\n", pwm->label);
246 static void twl6030_pwmled_free(struct pwm_chip *chip, struct pwm_device *pwm)
256 pwm->label);
265 dev_err(chip->dev, "%s: Failed to free PWM\n", pwm->label);