Lines Matching full:brightness
117 int brightness = backlight_get_brightness(bl); in mp3309c_bl_update_status() local
128 chip->pdata->levels[brightness], in mp3309c_bl_update_status()
144 if (brightness > 0) { in mp3309c_bl_update_status()
153 if (brightness == 0) in mp3309c_bl_update_status()
161 * The first time, before setting brightness, we must enable the in mp3309c_bl_update_status()
177 analog_val = brightness; in mp3309c_bl_update_status()
186 if (brightness > 0) in mp3309c_bl_update_status()
235 * Analog (by I2C commands) control mode: fixed 0..31 brightness in mp3309c_parse_fwnode()
247 * PWM control mode: check for brightness level in DT in mp3309c_parse_fwnode()
249 if (device_property_present(dev, "brightness-levels")) { in mp3309c_parse_fwnode()
250 /* Read brightness levels from DT */ in mp3309c_parse_fwnode()
251 num_levels = device_property_count_u32(dev, "brightness-levels"); in mp3309c_parse_fwnode()
255 /* Use default brightness levels */ in mp3309c_parse_fwnode()
260 /* Fill brightness levels array */ in mp3309c_parse_fwnode()
264 if (device_property_present(dev, "brightness-levels")) { in mp3309c_parse_fwnode()
265 ret = device_property_read_u32_array(dev, "brightness-levels", in mp3309c_parse_fwnode()
276 ret = device_property_read_u32(dev, "default-brightness", &pdata->default_brightness); in mp3309c_parse_fwnode()
280 dev_err_probe(dev, -ERANGE, "default brightness exceeds max brightness\n"); in mp3309c_parse_fwnode()
357 props.brightness = pdata->default_brightness; in mp3309c_probe()
392 bl->props.brightness = 0; in mp3309c_remove()