Lines Matching refs:bl
26 static int ep93xxbl_set(struct backlight_device *bl, int brightness) in ep93xxbl_set() argument
28 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_set()
37 static int ep93xxbl_update_status(struct backlight_device *bl) in ep93xxbl_update_status() argument
39 return ep93xxbl_set(bl, backlight_get_brightness(bl)); in ep93xxbl_update_status()
42 static int ep93xxbl_get_brightness(struct backlight_device *bl) in ep93xxbl_get_brightness() argument
44 struct ep93xxbl *ep93xxbl = bl_get_data(bl); in ep93xxbl_get_brightness()
57 struct backlight_device *bl; in ep93xxbl_probe() local
86 bl = devm_backlight_device_register(&dev->dev, dev->name, &dev->dev, in ep93xxbl_probe()
88 if (IS_ERR(bl)) in ep93xxbl_probe()
89 return PTR_ERR(bl); in ep93xxbl_probe()
91 bl->props.brightness = EP93XX_DEF_BRIGHT; in ep93xxbl_probe()
93 platform_set_drvdata(dev, bl); in ep93xxbl_probe()
95 ep93xxbl_update_status(bl); in ep93xxbl_probe()
103 struct backlight_device *bl = dev_get_drvdata(dev); in ep93xxbl_suspend() local
105 return ep93xxbl_set(bl, 0); in ep93xxbl_suspend()
110 struct backlight_device *bl = dev_get_drvdata(dev); in ep93xxbl_resume() local
112 backlight_update_status(bl); in ep93xxbl_resume()