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