Searched refs:ec_pwm (Results 1 – 1 of 1) sorted by relevance
118 struct cros_ec_pwm_device *ec_pwm = pwm_to_cros_ec_pwm(chip); in cros_ec_pwm_apply() local136 ret = cros_ec_pwm_set_duty(ec_pwm->ec, pwm->hwpwm, duty_cycle); in cros_ec_pwm_apply()148 struct cros_ec_pwm_device *ec_pwm = pwm_to_cros_ec_pwm(chip); in cros_ec_pwm_get_state() local152 ret = cros_ec_pwm_get_duty(ec_pwm->ec, pwm->hwpwm); in cros_ec_pwm_get_state()239 struct cros_ec_pwm_device *ec_pwm; in cros_ec_pwm_probe() local248 ec_pwm = devm_kzalloc(dev, sizeof(*ec_pwm), GFP_KERNEL); in cros_ec_pwm_probe()249 if (!ec_pwm) in cros_ec_pwm_probe()251 chip = &ec_pwm->chip; in cros_ec_pwm_probe()252 ec_pwm->ec = ec; in cros_ec_pwm_probe()273 platform_set_drvdata(pdev, ec_pwm); in cros_ec_pwm_probe()[all …]
Completed in 4 milliseconds