Searched refs:new_sr (Results 1 – 2 of 2) sorted by relevance
310 int wf_register_sensor(struct wf_sensor *new_sr) in wf_register_sensor() argument316 if (!strcmp(sr->name, new_sr->name)) { in wf_register_sensor()323 kref_init(&new_sr->ref); in wf_register_sensor()324 list_add(&new_sr->link, &wf_sensors); in wf_register_sensor()326 sysfs_attr_init(&new_sr->attr.attr); in wf_register_sensor()327 new_sr->attr.attr.name = new_sr->name; in wf_register_sensor()328 new_sr->attr.attr.mode = 0444; in wf_register_sensor()329 new_sr->attr.show = wf_show_sensor; in wf_register_sensor()330 new_sr->attr.store = NULL; in wf_register_sensor()331 if (device_create_file(&wf_platform_device.dev, &new_sr->attr)) in wf_register_sensor()[all …]
348 unsigned long long current_sr, new_sr; in restore_sigcontext() local376 err |= __get_user(new_sr, &sc->sc_sr); in restore_sigcontext()378 regs->sr |= (new_sr & ~SR_MASK); in restore_sigcontext()