Lines Matching refs:bl
26 static int adp5520_bl_set(struct backlight_device *bl, int brightness) in adp5520_bl_set() argument
28 struct adp5520_bl *data = bl_get_data(bl); in adp5520_bl_set()
66 static int adp5520_bl_update_status(struct backlight_device *bl) in adp5520_bl_update_status() argument
68 return adp5520_bl_set(bl, backlight_get_brightness(bl)); in adp5520_bl_update_status()
71 static int adp5520_bl_get_brightness(struct backlight_device *bl) in adp5520_bl_get_brightness() argument
73 struct adp5520_bl *data = bl_get_data(bl); in adp5520_bl_get_brightness()
87 static int adp5520_bl_setup(struct backlight_device *bl) in adp5520_bl_setup() argument
89 struct adp5520_bl *data = bl_get_data(bl); in adp5520_bl_setup()
283 struct backlight_device *bl; in adp5520_bl_probe() local
307 bl = devm_backlight_device_register(&pdev->dev, pdev->name, in adp5520_bl_probe()
310 if (IS_ERR(bl)) { in adp5520_bl_probe()
312 return PTR_ERR(bl); in adp5520_bl_probe()
315 bl->props.brightness = ADP5020_MAX_BRIGHTNESS; in adp5520_bl_probe()
317 ret = sysfs_create_group(&bl->dev.kobj, in adp5520_bl_probe()
325 platform_set_drvdata(pdev, bl); in adp5520_bl_probe()
326 ret = adp5520_bl_setup(bl); in adp5520_bl_probe()
330 sysfs_remove_group(&bl->dev.kobj, in adp5520_bl_probe()
335 backlight_update_status(bl); in adp5520_bl_probe()
342 struct backlight_device *bl = platform_get_drvdata(pdev); in adp5520_bl_remove() local
343 struct adp5520_bl *data = bl_get_data(bl); in adp5520_bl_remove()
348 sysfs_remove_group(&bl->dev.kobj, in adp5520_bl_remove()
357 struct backlight_device *bl = dev_get_drvdata(dev); in adp5520_bl_suspend() local
359 return adp5520_bl_set(bl, 0); in adp5520_bl_suspend()
364 struct backlight_device *bl = dev_get_drvdata(dev); in adp5520_bl_resume() local
366 backlight_update_status(bl); in adp5520_bl_resume()