Lines Matching refs:pwm
18 #include <linux/pwm.h>
64 static int lp3943_pwm_request(struct pwm_chip *chip, struct pwm_device *pwm)
69 pwm_map = lp3943_pwm_request_map(lp3943_pwm, pwm->hwpwm);
73 return pwm_set_chip_data(pwm, pwm_map);
90 static void lp3943_pwm_free(struct pwm_chip *chip, struct pwm_device *pwm)
93 struct lp3943_pwm_map *pwm_map = pwm_get_chip_data(pwm);
98 static int lp3943_pwm_config(struct pwm_chip *chip, struct pwm_device *pwm,
116 if (pwm->hwpwm == 0) {
156 static int lp3943_pwm_enable(struct pwm_chip *chip, struct pwm_device *pwm)
159 struct lp3943_pwm_map *pwm_map = pwm_get_chip_data(pwm);
162 if (pwm->hwpwm == 0)
175 static void lp3943_pwm_disable(struct pwm_chip *chip, struct pwm_device *pwm)
178 struct lp3943_pwm_map *pwm_map = pwm_get_chip_data(pwm);
297 { .compatible = "ti,lp3943-pwm", },
307 .name = "lp3943-pwm",
315 MODULE_ALIAS("platform:lp3943-pwm");