Lines Matching refs:new_ct
207 int wf_register_control(struct wf_control *new_ct)
213 if (!strcmp(ct->name, new_ct->name)) {
220 kref_init(&new_ct->ref);
221 list_add(&new_ct->link, &wf_controls);
223 sysfs_attr_init(&new_ct->attr.attr);
224 new_ct->attr.attr.name = new_ct->name;
225 new_ct->attr.attr.mode = 0644;
226 new_ct->attr.show = wf_show_control;
227 new_ct->attr.store = wf_store_control;
228 if (device_create_file(&wf_platform_device.dev, &new_ct->attr))
230 " for %s\n", new_ct->name);
233 DBG("wf: Registered control %s\n", new_ct->name);
235 wf_notify(WF_EVENT_NEW_CONTROL, new_ct);