Lines Matching refs:bl
31 struct backlight_device *bl; member
76 static int tps65217_bl_update_status(struct backlight_device *bl) in tps65217_bl_update_status() argument
78 struct tps65217_bl *tps65217_bl = bl_get_data(bl); in tps65217_bl_update_status()
80 int brightness = bl->props.brightness; in tps65217_bl_update_status()
82 if (bl->props.state & BL_CORE_SUSPENDED) in tps65217_bl_update_status()
85 if ((bl->props.power != FB_BLANK_UNBLANK) || in tps65217_bl_update_status()
86 (bl->props.fb_blank != FB_BLANK_UNBLANK)) in tps65217_bl_update_status()
307 tps65217_bl->bl = devm_backlight_device_register(&pdev->dev, pdev->name, in tps65217_bl_probe()
310 if (IS_ERR(tps65217_bl->bl)) { in tps65217_bl_probe()
313 return PTR_ERR(tps65217_bl->bl); in tps65217_bl_probe()
316 tps65217_bl->bl->props.brightness = pdata->dft_brightness; in tps65217_bl_probe()
317 backlight_update_status(tps65217_bl->bl); in tps65217_bl_probe()