Lines Matching refs:brightness
228 static int ams369fg06_gamma_ctl(struct ams369fg06 *lcd, int brightness) in ams369fg06_gamma_ctl() argument
233 if ((brightness >= 0) && (brightness <= 50)) in ams369fg06_gamma_ctl()
235 else if ((brightness > 50) && (brightness <= 100)) in ams369fg06_gamma_ctl()
237 else if ((brightness > 100) && (brightness <= 150)) in ams369fg06_gamma_ctl()
239 else if ((brightness > 150) && (brightness <= 200)) in ams369fg06_gamma_ctl()
241 else if ((brightness > 200) && (brightness <= 255)) in ams369fg06_gamma_ctl()
341 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); in ams369fg06_power_on()
411 int brightness = bd->props.brightness; in ams369fg06_set_brightness() local
414 if (brightness < MIN_BRIGHTNESS || in ams369fg06_set_brightness()
415 brightness > bd->props.max_brightness) { in ams369fg06_set_brightness()
421 ret = ams369fg06_gamma_ctl(lcd, bd->props.brightness); in ams369fg06_set_brightness()
486 bd->props.brightness = DEFAULT_BRIGHTNESS; in ams369fg06_probe()