Lines Matching full:brightness
40 int brightness = backlight_get_brightness(bl); in ktd253_backlight_update_status() local
45 dev_dbg(ktd253->dev, "new brightness/ratio: %d/32\n", brightness); in ktd253_backlight_update_status()
47 target_ratio = brightness; in ktd253_backlight_update_status()
114 u32 brightness; in ktd253_backlight_probe() local
122 ret = device_property_read_u32(dev, "max-brightness", &max_brightness); in ktd253_backlight_probe()
126 /* Clamp brightness to hardware max */ in ktd253_backlight_probe()
127 dev_err(dev, "illegal max brightness specified\n"); in ktd253_backlight_probe()
131 ret = device_property_read_u32(dev, "default-brightness", &brightness); in ktd253_backlight_probe()
133 brightness = KTD253_DEFAULT_RATIO; in ktd253_backlight_probe()
134 if (brightness > max_brightness) { in ktd253_backlight_probe()
135 /* Clamp default brightness to max brightness */ in ktd253_backlight_probe()
136 dev_err(dev, "default brightness exceeds max brightness\n"); in ktd253_backlight_probe()
137 brightness = max_brightness; in ktd253_backlight_probe()
140 if (brightness) in ktd253_backlight_probe()
147 brightness ? GPIOD_OUT_HIGH : in ktd253_backlight_probe()
164 /* When we just enable the GPIO line we set max brightness */ in ktd253_backlight_probe()
165 if (brightness) { in ktd253_backlight_probe()
166 bl->props.brightness = brightness; in ktd253_backlight_probe()
169 bl->props.brightness = 0; in ktd253_backlight_probe()