Lines Matching refs:blightdev

132 	struct backlight_device *blightdev;  member
1200 static int ideapad_backlight_get_brightness(struct backlight_device *blightdev) in ideapad_backlight_get_brightness() argument
1202 struct ideapad_private *priv = bl_get_data(blightdev); in ideapad_backlight_get_brightness()
1213 static int ideapad_backlight_update_status(struct backlight_device *blightdev) in ideapad_backlight_update_status() argument
1215 struct ideapad_private *priv = bl_get_data(blightdev); in ideapad_backlight_update_status()
1219 blightdev->props.brightness); in ideapad_backlight_update_status()
1224 blightdev->props.power != FB_BLANK_POWERDOWN); in ideapad_backlight_update_status()
1238 struct backlight_device *blightdev; in ideapad_backlight_init() local
1260 blightdev = backlight_device_register("ideapad", in ideapad_backlight_init()
1265 if (IS_ERR(blightdev)) { in ideapad_backlight_init()
1266 err = PTR_ERR(blightdev); in ideapad_backlight_init()
1272 priv->blightdev = blightdev; in ideapad_backlight_init()
1273 blightdev->props.brightness = now; in ideapad_backlight_init()
1274 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; in ideapad_backlight_init()
1276 backlight_update_status(blightdev); in ideapad_backlight_init()
1283 backlight_device_unregister(priv->blightdev); in ideapad_backlight_exit()
1284 priv->blightdev = NULL; in ideapad_backlight_exit()
1289 struct backlight_device *blightdev = priv->blightdev; in ideapad_backlight_notify_power() local
1292 if (!blightdev) in ideapad_backlight_notify_power()
1298 blightdev->props.power = power ? FB_BLANK_UNBLANK : FB_BLANK_POWERDOWN; in ideapad_backlight_notify_power()
1306 if (!priv->blightdev) in ideapad_backlight_notify_brightness()
1309 backlight_force_update(priv->blightdev, BACKLIGHT_UPDATE_HOTKEY); in ideapad_backlight_notify_brightness()