Lines Matching refs:leds

61 	struct lg_g15_led leds[LG_G15_LED_MAX];  member
79 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness = g15->transfer_buf[1]; in lg_g15_update_led_brightness()
80 g15->leds[LG_G15_LCD_BRIGHTNESS].brightness = g15->transfer_buf[2]; in lg_g15_update_led_brightness()
82 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g15_update_led_brightness()
84 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g15_update_led_brightness()
86 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g15_update_led_brightness()
88 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g15_update_led_brightness()
103 brightness = g15->leds[g15_led->led].brightness; in lg_g15_led_get()
135 val = g15->leds[i].brightness; in lg_g15_led_set()
171 old_brightness[i] = g15->leds[i].brightness; in lg_g15_leds_changed_work()
176 brightness[i] = g15->leds[i].brightness; in lg_g15_leds_changed_work()
186 led_classdev_notify_brightness_hw_changed(&g15->leds[i].cdev, in lg_g15_leds_changed_work()
209 g15->leds[i].red = in lg_g510_get_initial_led_brightness()
211 g15->leds[i].green = in lg_g510_get_initial_led_brightness()
213 g15->leds[i].blue = in lg_g510_get_initial_led_brightness()
215 g15->leds[i].brightness = high; in lg_g510_get_initial_led_brightness()
217 g15->leds[i].red = 255; in lg_g510_get_initial_led_brightness()
218 g15->leds[i].green = 255; in lg_g510_get_initial_led_brightness()
219 g15->leds[i].blue = 255; in lg_g510_get_initial_led_brightness()
220 g15->leds[i].brightness = 0; in lg_g510_get_initial_led_brightness()
352 lg_g510_kbd_led_write(g15, &g15->leds[LG_G15_KBD_BRIGHTNESS], in lg_g510_leds_sync_work()
353 g15->leds[LG_G15_KBD_BRIGHTNESS].brightness); in lg_g510_leds_sync_work()
369 g15->leds[LG_G15_MACRO_PRESET1].brightness = in lg_g510_update_mkey_led_brightness()
371 g15->leds[LG_G15_MACRO_PRESET2].brightness = in lg_g510_update_mkey_led_brightness()
373 g15->leds[LG_G15_MACRO_PRESET3].brightness = in lg_g510_update_mkey_led_brightness()
375 g15->leds[LG_G15_MACRO_RECORD].brightness = in lg_g510_update_mkey_led_brightness()
390 brightness = g15->leds[g15_led->led].brightness; in lg_g510_mkey_led_get()
415 val = g15->leds[i].brightness; in lg_g510_mkey_led_set()
671 g15->leds[i].led = i; in lg_g15_register_led()
672 g15->leds[i].cdev.name = name; in lg_g15_register_led()
677 g15->leds[i].cdev.brightness_get = lg_g15_led_get; in lg_g15_register_led()
680 g15->leds[i].cdev.brightness_set_blocking = lg_g15_led_set; in lg_g15_register_led()
682 g15->leds[i].cdev.flags = LED_BRIGHT_HW_CHANGED; in lg_g15_register_led()
683 g15->leds[i].cdev.max_brightness = 2; in lg_g15_register_led()
685 g15->leds[i].cdev.max_brightness = 1; in lg_g15_register_led()
696 g15->leds[i].cdev.name = "g15::power_on_backlight_val"; in lg_g15_register_led()
699 g15->leds[i].cdev.brightness_set_blocking = in lg_g15_register_led()
701 g15->leds[i].cdev.brightness_get = in lg_g15_register_led()
703 g15->leds[i].cdev.max_brightness = 255; in lg_g15_register_led()
704 g15->leds[i].cdev.groups = lg_g510_kbd_led_groups; in lg_g15_register_led()
707 g15->leds[i].cdev.brightness_set_blocking = in lg_g15_register_led()
709 g15->leds[i].cdev.brightness_get = in lg_g15_register_led()
711 g15->leds[i].cdev.max_brightness = 1; in lg_g15_register_led()
716 return devm_led_classdev_register(&g15->hdev->dev, &g15->leds[i].cdev); in lg_g15_register_led()