Lines Matching full:backlight
10 #include <linux/backlight.h>
72 struct backlight_device *backlight; member
82 static int bd6107_backlight_update_status(struct backlight_device *backlight) in bd6107_backlight_update_status() argument
84 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_update_status()
85 int brightness = backlight_get_brightness(backlight); in bd6107_backlight_update_status()
102 static bool bd6107_backlight_controls_device(struct backlight_device *backlight, in bd6107_backlight_controls_device() argument
105 struct bd6107 *bd = bl_get_data(backlight); in bd6107_backlight_controls_device()
119 struct backlight_device *backlight; in bd6107_probe() local
159 backlight = devm_backlight_device_register(&client->dev, in bd6107_probe()
163 if (IS_ERR(backlight)) { in bd6107_probe()
164 dev_err(&client->dev, "failed to register backlight\n"); in bd6107_probe()
165 return PTR_ERR(backlight); in bd6107_probe()
168 backlight_update_status(backlight); in bd6107_probe()
169 i2c_set_clientdata(client, backlight); in bd6107_probe()
176 struct backlight_device *backlight = i2c_get_clientdata(client); in bd6107_remove() local
178 backlight->props.brightness = 0; in bd6107_remove()
179 backlight_update_status(backlight); in bd6107_remove()
199 MODULE_DESCRIPTION("Rohm BD6107 Backlight Driver");