Searched refs:brightness (Results 1 – 8 of 8) sorted by relevance
107 int brightness; in pmac_backlight_key_worker() local111 brightness = props->brightness + in pmac_backlight_key_worker()115 if (brightness < 0) in pmac_backlight_key_worker()116 brightness = 0; in pmac_backlight_key_worker()117 else if (brightness > props->max_brightness) in pmac_backlight_key_worker()118 brightness = props->max_brightness; in pmac_backlight_key_worker()120 props->brightness = brightness; in pmac_backlight_key_worker()139 static int __pmac_backlight_set_legacy_brightness(int brightness) in __pmac_backlight_set_legacy_brightness() argument148 props->brightness = brightness * in __pmac_backlight_set_legacy_brightness()152 if (props->brightness > props->max_brightness) in __pmac_backlight_set_legacy_brightness()[all …]
33 extern void pmac_backlight_set_legacy_brightness_pmu(int brightness);34 extern int pmac_backlight_set_legacy_brightness(int brightness);
52 enum led_brightness brightness) in pb1200_mmcled_set() argument54 if (brightness != LED_OFF) { in pb1200_mmcled_set()
270 static int palmz72_backlight_notify(int brightness) in palmz72_backlight_notify() argument272 gpio_set_value(GPIO_NR_PALMZ72_BL_POWER, brightness); in palmz72_backlight_notify()273 gpio_set_value(GPIO_NR_PALMZ72_LCD_POWER, brightness); in palmz72_backlight_notify()274 return brightness; in palmz72_backlight_notify()
292 static int palmtx_backlight_notify(int brightness) in palmtx_backlight_notify() argument294 gpio_set_value(GPIO_NR_PALMTX_BL_POWER, brightness); in palmtx_backlight_notify()295 gpio_set_value(GPIO_NR_PALMTX_LCD_POWER, brightness); in palmtx_backlight_notify()296 return brightness; in palmtx_backlight_notify()
374 static int magician_backlight_notify(int brightness) in magician_backlight_notify() argument376 gpio_set_value(EGPIO_MAGICIAN_BL_POWER, brightness); in magician_backlight_notify()377 if (brightness >= 200) { in magician_backlight_notify()379 return brightness - 72; in magician_backlight_notify()382 return brightness; in magician_backlight_notify()
378 static int viper_backlight_notify(int brightness) in viper_backlight_notify() argument380 gpio_set_value(VIPER_LCD_EN_GPIO, !!brightness); in viper_backlight_notify()381 gpio_set_value(VIPER_BCKLIGHT_EN_GPIO, !!brightness); in viper_backlight_notify()383 return brightness; in viper_backlight_notify()
86 props->brightness = props->max_brightness; in pmac_backlight_unblank()