Lines Matching refs:bl
32 static int max8925_backlight_set(struct backlight_device *bl, int brightness) in max8925_backlight_set() argument
34 struct max8925_backlight_data *data = bl_get_data(bl); in max8925_backlight_set()
65 static int max8925_backlight_update_status(struct backlight_device *bl) in max8925_backlight_update_status() argument
67 return max8925_backlight_set(bl, backlight_get_brightness(bl)); in max8925_backlight_update_status()
70 static int max8925_backlight_get_brightness(struct backlight_device *bl) in max8925_backlight_get_brightness() argument
72 struct max8925_backlight_data *data = bl_get_data(bl); in max8925_backlight_get_brightness()
124 struct backlight_device *bl; in max8925_backlight_probe() local
154 bl = devm_backlight_device_register(&pdev->dev, "max8925-backlight", in max8925_backlight_probe()
157 if (IS_ERR(bl)) { in max8925_backlight_probe()
159 return PTR_ERR(bl); in max8925_backlight_probe()
161 bl->props.brightness = MAX_BRIGHTNESS; in max8925_backlight_probe()
163 platform_set_drvdata(pdev, bl); in max8925_backlight_probe()
181 backlight_update_status(bl); in max8925_backlight_probe()