Home
last modified time | relevance | path

Searched refs:pwm_map (Results 1 – 1 of 1) sorted by relevance

/Linux-v5.4/drivers/pwm/
Dpwm-lp3943.c38 struct lp3943_pwm_map *pwm_map; in lp3943_pwm_request_map() local
41 pwm_map = kzalloc(sizeof(*pwm_map), GFP_KERNEL); in lp3943_pwm_request_map()
42 if (!pwm_map) in lp3943_pwm_request_map()
45 pwm_map->output = pdata->pwms[hwpwm]->output; in lp3943_pwm_request_map()
46 pwm_map->num_outputs = pdata->pwms[hwpwm]->num_outputs; in lp3943_pwm_request_map()
48 for (i = 0; i < pwm_map->num_outputs; i++) { in lp3943_pwm_request_map()
49 offset = pwm_map->output[i]; in lp3943_pwm_request_map()
53 kfree(pwm_map); in lp3943_pwm_request_map()
58 return pwm_map; in lp3943_pwm_request_map()
64 struct lp3943_pwm_map *pwm_map; in lp3943_pwm_request() local
[all …]