Lines Matching full:bl
24 static int gpio_backlight_update_status(struct backlight_device *bl) in gpio_backlight_update_status() argument
26 struct gpio_backlight *gbl = bl_get_data(bl); in gpio_backlight_update_status()
28 gpiod_set_value_cansleep(gbl->gpiod, backlight_get_brightness(bl)); in gpio_backlight_update_status()
33 static int gpio_backlight_check_fb(struct backlight_device *bl, in gpio_backlight_check_fb() argument
36 struct gpio_backlight *gbl = bl_get_data(bl); in gpio_backlight_check_fb()
53 struct backlight_device *bl; in gpio_backlight_probe() local
78 bl = devm_backlight_device_register(dev, dev_name(dev), dev, gbl, in gpio_backlight_probe()
80 if (IS_ERR(bl)) { in gpio_backlight_probe()
82 return PTR_ERR(bl); in gpio_backlight_probe()
88 bl->props.power = def_value ? FB_BLANK_UNBLANK in gpio_backlight_probe()
92 bl->props.power = FB_BLANK_POWERDOWN; in gpio_backlight_probe()
94 bl->props.power = FB_BLANK_UNBLANK; in gpio_backlight_probe()
96 bl->props.brightness = 1; in gpio_backlight_probe()
98 init_brightness = backlight_get_brightness(bl); in gpio_backlight_probe()
105 platform_set_drvdata(pdev, bl); in gpio_backlight_probe()