Lines Matching refs:brightness
62 static int pm860x_backlight_set(struct backlight_device *bl, int brightness) in pm860x_backlight_set() argument
69 if (brightness > MAX_BRIGHTNESS) in pm860x_backlight_set()
72 value = brightness; in pm860x_backlight_set()
74 if (brightness) in pm860x_backlight_set()
81 if ((data->current_brightness == 0) && brightness) { in pm860x_backlight_set()
94 if (brightness == MAX_BRIGHTNESS) { in pm860x_backlight_set()
100 if (brightness == MAX_BRIGHTNESS) { in pm860x_backlight_set()
113 if (brightness == 0) in pm860x_backlight_set()
127 int brightness = bl->props.brightness; in pm860x_backlight_update_status() local
130 brightness = 0; in pm860x_backlight_update_status()
133 brightness = 0; in pm860x_backlight_update_status()
136 brightness = 0; in pm860x_backlight_update_status()
138 return pm860x_backlight_set(bl, brightness); in pm860x_backlight_update_status()
250 bl->props.brightness = MAX_BRIGHTNESS; in pm860x_backlight_probe()