Lines Matching full:brightness
25 int brightness; /* current brightness */ member
29 int brightness) in aat2870_brightness() argument
34 val = brightness * (aat2870_bl->max_current - 1); in aat2870_brightness()
62 int brightness = bd->props.brightness; in aat2870_bl_update_status() local
65 if ((brightness < 0) || (bd->props.max_brightness < brightness)) { in aat2870_bl_update_status()
66 dev_err(&bd->dev, "invalid brightness, %d\n", brightness); in aat2870_bl_update_status()
70 dev_dbg(&bd->dev, "brightness=%d, power=%d, state=%d\n", in aat2870_bl_update_status()
71 bd->props.brightness, bd->props.power, bd->props.state); in aat2870_bl_update_status()
76 brightness = 0; in aat2870_bl_update_status()
79 (u8)aat2870_brightness(aat2870_bl, brightness)); in aat2870_bl_update_status()
83 if (brightness == 0) { in aat2870_bl_update_status()
87 } else if (aat2870_bl->brightness == 0) { in aat2870_bl_update_status()
93 aat2870_bl->brightness = brightness; in aat2870_bl_update_status()
170 aat2870_bl->brightness = 0; in aat2870_bl_probe()
172 bd->props.brightness = bd->props.max_brightness; in aat2870_bl_probe()
192 bd->props.brightness = 0; in aat2870_bl_remove()