k90 42 drivers/hid/hid-corsair.c struct k90_drvdata *k90; k90 470 drivers/hid/hid-corsair.c struct k90_drvdata *k90; k90 474 drivers/hid/hid-corsair.c k90 = kzalloc(sizeof(struct k90_drvdata), GFP_KERNEL); k90 475 drivers/hid/hid-corsair.c if (!k90) { k90 479 drivers/hid/hid-corsair.c drvdata->k90 = k90; k90 490 drivers/hid/hid-corsair.c k90->record_led.removed = false; k90 491 drivers/hid/hid-corsair.c k90->record_led.cdev.name = name; k90 492 drivers/hid/hid-corsair.c k90->record_led.cdev.max_brightness = 1; k90 493 drivers/hid/hid-corsair.c k90->record_led.cdev.brightness_set = k90_brightness_set; k90 494 drivers/hid/hid-corsair.c k90->record_led.cdev.brightness_get = k90_record_led_get; k90 495 drivers/hid/hid-corsair.c INIT_WORK(&k90->record_led.work, k90_record_led_work); k90 496 drivers/hid/hid-corsair.c k90->record_led.brightness = 0; k90 497 drivers/hid/hid-corsair.c ret = led_classdev_register(&dev->dev, &k90->record_led.cdev); k90 509 drivers/hid/hid-corsair.c k90->record_led.removed = true; k90 510 drivers/hid/hid-corsair.c led_classdev_unregister(&k90->record_led.cdev); k90 511 drivers/hid/hid-corsair.c cancel_work_sync(&k90->record_led.work); k90 513 drivers/hid/hid-corsair.c kfree(k90->record_led.cdev.name); k90 515 drivers/hid/hid-corsair.c kfree(k90); k90 517 drivers/hid/hid-corsair.c drvdata->k90 = NULL; k90 537 drivers/hid/hid-corsair.c struct k90_drvdata *k90 = drvdata->k90; k90 539 drivers/hid/hid-corsair.c if (k90) { k90 542 drivers/hid/hid-corsair.c k90->record_led.removed = true; k90 543 drivers/hid/hid-corsair.c led_classdev_unregister(&k90->record_led.cdev); k90 544 drivers/hid/hid-corsair.c cancel_work_sync(&k90->record_led.work); k90 545 drivers/hid/hid-corsair.c kfree(k90->record_led.cdev.name); k90 547 drivers/hid/hid-corsair.c kfree(k90); k90 605 drivers/hid/hid-corsair.c if (!drvdata->k90) k90 610 drivers/hid/hid-corsair.c drvdata->k90->record_led.brightness = 1; k90 613 drivers/hid/hid-corsair.c drvdata->k90->record_led.brightness = 0;