Lines Matching full:bl
20 struct backlight_device *bl; member
44 backlight_update_status(pcf_bl->bl); in pcf50633_bl_set_brightness_limit()
49 static int pcf50633_bl_update_status(struct backlight_device *bl) in pcf50633_bl_update_status() argument
51 struct pcf50633_bl *pcf_bl = bl_get_data(bl); in pcf50633_bl_update_status()
55 if (bl->props.state & (BL_CORE_SUSPENDED | BL_CORE_FBBLANK) || in pcf50633_bl_update_status()
56 bl->props.power != FB_BLANK_UNBLANK) in pcf50633_bl_update_status()
58 else if (bl->props.brightness < pcf_bl->brightness_limit) in pcf50633_bl_update_status()
59 new_brightness = bl->props.brightness; in pcf50633_bl_update_status()
81 static int pcf50633_bl_get_brightness(struct backlight_device *bl) in pcf50633_bl_get_brightness() argument
83 struct pcf50633_bl *pcf_bl = bl_get_data(bl); in pcf50633_bl_get_brightness()
121 pcf_bl->bl = devm_backlight_device_register(&pdev->dev, pdev->name, in pcf50633_bl_probe()
125 if (IS_ERR(pcf_bl->bl)) in pcf50633_bl_probe()
126 return PTR_ERR(pcf_bl->bl); in pcf50633_bl_probe()
136 pcf_bl->brightness = pcf_bl->bl->props.brightness + 1; in pcf50633_bl_probe()
138 backlight_update_status(pcf_bl->bl); in pcf50633_bl_probe()