Lines Matching full:brightness

25  * @cached_channels:	cached values of per-channel brightness that was sent to the MCU
45 * @brightness_knode: kernel node of the "brightness" device sysfs attribute (this is the
46 * driver specific global brightness, not the LED classdev brightness)
70 ret = omnia_cmd_set_color(client, led->reg, led->subled_info[0].brightness, in omnia_led_send_color_cmd()
71 led->subled_info[1].brightness, led->subled_info[2].brightness); in omnia_led_send_color_cmd()
77 led->cached_channels[i] = led->subled_info[i].brightness; in omnia_led_send_color_cmd()
86 if (led->subled_info[i].brightness != led->cached_channels[i]) in omnia_led_channels_changed()
93 enum led_brightness brightness) in omnia_led_brightness_set_blocking() argument
103 * Only recalculate RGB brightnesses from intensities if brightness is in omnia_led_brightness_set_blocking()
105 * max_brightness as brightness). Otherwise we won't be using them and in omnia_led_brightness_set_blocking()
109 if (brightness || led->hwtrig) { in omnia_led_brightness_set_blocking()
110 led_mc_calc_color_components(mc_cdev, brightness ?: in omnia_led_brightness_set_blocking()
114 * Send color command only if brightness is non-zero and the RGB in omnia_led_brightness_set_blocking()
122 * Send on/off state change only if (bool)brightness changed and the LED in omnia_led_brightness_set_blocking()
125 if (!err && !led->hwtrig && !brightness != !led->on) { in omnia_led_brightness_set_blocking()
128 if (brightness) in omnia_led_brightness_set_blocking()
133 led->on = !!brightness; in omnia_led_brightness_set_blocking()
154 * If the LED is off (brightness was set to 0), the last in omnia_hwtrig_activate()
236 led->subled_info[i].brightness = 255; in omnia_led_register()
264 return dev_err_probe(dev, ret, "Cannot set LED %pOF brightness\n", np); in omnia_led_register()
283 * The microcontroller cycles between 8 levels of this global brightness (from
286 * We expose this setting via a sysfs attribute file called "brightness". This
308 unsigned long brightness; in brightness_store() local
311 if (kstrtoul(buf, 10, &brightness)) in brightness_store()
314 if (brightness > 100) in brightness_store()
317 err = omnia_cmd_write_u8(client, OMNIA_CMD_SET_BRIGHTNESS, brightness); in brightness_store()
321 static DEVICE_ATTR_RW(brightness);
377 leds->brightness_knode = sysfs_get_dirent(leds->client->dev.kobj.sd, "brightness"); in omnia_brightness_changed_threaded_fn()
402 "Brightness change interrupt supported by MCU firmware but not described in device-tree\n"); in omnia_request_brightness_irq()
498 return dev_err_probe(dev, ret, "Cannot request brightness IRQ\n"); in omnia_leds_probe()