Lines Matching refs:bl
82 static int da9052_backlight_update_status(struct backlight_device *bl) in da9052_backlight_update_status() argument
84 int brightness = bl->props.brightness; in da9052_backlight_update_status()
85 struct da9052_bl *wleds = bl_get_data(bl); in da9052_backlight_update_status()
93 static int da9052_backlight_get_brightness(struct backlight_device *bl) in da9052_backlight_get_brightness() argument
95 struct da9052_bl *wleds = bl_get_data(bl); in da9052_backlight_get_brightness()
107 struct backlight_device *bl; in da9052_backlight_probe() local
123 bl = devm_backlight_device_register(&pdev->dev, pdev->name, in da9052_backlight_probe()
126 if (IS_ERR(bl)) { in da9052_backlight_probe()
128 return PTR_ERR(bl); in da9052_backlight_probe()
131 bl->props.max_brightness = DA9052_MAX_BRIGHTNESS; in da9052_backlight_probe()
132 bl->props.brightness = 0; in da9052_backlight_probe()
133 platform_set_drvdata(pdev, bl); in da9052_backlight_probe()
140 struct backlight_device *bl = platform_get_drvdata(pdev); in da9052_backlight_remove() local
141 struct da9052_bl *wleds = bl_get_data(bl); in da9052_backlight_remove()