Lines Matching full:brightness
42 int brightness = backlight_get_brightness(bl_dev); in rt4831_bl_update_status() local
43 unsigned int enable = brightness ? RT4831_BLEN_MASK : 0; in rt4831_bl_update_status()
47 if (brightness) { in rt4831_bl_update_status()
48 v[0] = (brightness - 1) & RT4831_BLDIML_MASK; in rt4831_bl_update_status()
49 v[1] = ((brightness - 1) & RT4831_BLDIMH_MASK) >> RT4831_BLDIMH_SHIFT; in rt4831_bl_update_status()
94 u32 brightness, ocp_uA; in rt4831_parse_backlight_properties() local
99 ret = device_property_read_u32(dev, "max-brightness", &brightness); in rt4831_parse_backlight_properties()
101 brightness = RT4831_BLMAX_BRIGHTNESS; in rt4831_parse_backlight_properties()
103 bl_props->max_brightness = min_t(u32, brightness, RT4831_BLMAX_BRIGHTNESS); in rt4831_parse_backlight_properties()
105 ret = device_property_read_u32(dev, "default-brightness", &brightness); in rt4831_parse_backlight_properties()
107 brightness = bl_props->max_brightness; in rt4831_parse_backlight_properties()
109 bl_props->brightness = min_t(u32, brightness, bl_props->max_brightness); in rt4831_parse_backlight_properties()
211 bl_dev->props.brightness = 0; in rt4831_bl_remove()