Lines Matching full:levels
20 unsigned int *levels; member
30 if (priv->levels) in led_bl_set_brightness()
31 bkl_brightness = priv->levels[level]; in led_bl_set_brightness()
134 num_levels = of_property_count_u32_elems(node, "brightness-levels"); in led_bl_parse_levels()
138 u32 *levels = NULL; in led_bl_parse_levels() local
140 levels = devm_kzalloc(dev, sizeof(u32) * num_levels, in led_bl_parse_levels()
142 if (!levels) in led_bl_parse_levels()
145 ret = of_property_read_u32_array(node, "brightness-levels", in led_bl_parse_levels()
146 levels, in led_bl_parse_levels()
157 if ((i && db > levels[i-1]) && db <= levels[i]) in led_bl_parse_levels()
162 priv->levels = levels; in led_bl_parse_levels()
164 dev_warn(dev, "Not enough levels defined\n"); in led_bl_parse_levels()