Lines Matching full:bl
26 static int wm831x_backlight_set(struct backlight_device *bl, int brightness) in wm831x_backlight_set() argument
28 struct wm831x_backlight_data *data = bl_get_data(bl); in wm831x_backlight_set()
92 static int wm831x_backlight_update_status(struct backlight_device *bl) in wm831x_backlight_update_status() argument
94 return wm831x_backlight_set(bl, backlight_get_brightness(bl)); in wm831x_backlight_update_status()
97 static int wm831x_backlight_get_brightness(struct backlight_device *bl) in wm831x_backlight_get_brightness() argument
99 struct wm831x_backlight_data *data = bl_get_data(bl); in wm831x_backlight_get_brightness()
116 struct backlight_device *bl; in wm831x_backlight_probe() local
185 bl = devm_backlight_device_register(&pdev->dev, "wm831x", &pdev->dev, in wm831x_backlight_probe()
187 if (IS_ERR(bl)) { in wm831x_backlight_probe()
189 return PTR_ERR(bl); in wm831x_backlight_probe()
192 bl->props.brightness = max_isel; in wm831x_backlight_probe()
194 platform_set_drvdata(pdev, bl); in wm831x_backlight_probe()
199 backlight_update_status(bl); in wm831x_backlight_probe()