Lines Matching refs:export
38 struct pwm_export *export = child_to_pwm_export(child); in child_to_pwm_device() local
40 return export->pwm; in child_to_pwm_device()
186 struct pwm_export *export = child_to_pwm_export(child); in pwm_export_release() local
188 kfree(export); in pwm_export_release()
193 struct pwm_export *export; in pwm_export_child() local
199 export = kzalloc(sizeof(*export), GFP_KERNEL); in pwm_export_child()
200 if (!export) { in pwm_export_child()
205 export->pwm = pwm; in pwm_export_child()
207 export->child.release = pwm_export_release; in pwm_export_child()
208 export->child.parent = parent; in pwm_export_child()
209 export->child.devt = MKDEV(0, 0); in pwm_export_child()
210 export->child.groups = pwm_groups; in pwm_export_child()
211 dev_set_name(&export->child, "pwm%u", pwm->hwpwm); in pwm_export_child()
213 ret = device_register(&export->child); in pwm_export_child()
216 kfree(export); in pwm_export_child()
273 static DEVICE_ATTR_WO(export);