Lines Matching refs:bl
40 static int da903x_backlight_set(struct backlight_device *bl, int brightness) in da903x_backlight_set() argument
42 struct da903x_backlight_data *data = bl_get_data(bl); in da903x_backlight_set()
78 static int da903x_backlight_update_status(struct backlight_device *bl) in da903x_backlight_update_status() argument
80 return da903x_backlight_set(bl, backlight_get_brightness(bl)); in da903x_backlight_update_status()
83 static int da903x_backlight_get_brightness(struct backlight_device *bl) in da903x_backlight_get_brightness() argument
85 struct da903x_backlight_data *data = bl_get_data(bl); in da903x_backlight_get_brightness()
100 struct backlight_device *bl; in da903x_backlight_probe() local
133 bl = devm_backlight_device_register(&pdev->dev, pdev->name, in da903x_backlight_probe()
136 if (IS_ERR(bl)) { in da903x_backlight_probe()
138 return PTR_ERR(bl); in da903x_backlight_probe()
141 bl->props.brightness = max_brightness; in da903x_backlight_probe()
143 platform_set_drvdata(pdev, bl); in da903x_backlight_probe()
144 backlight_update_status(bl); in da903x_backlight_probe()