Lines Matching refs:bd
1394 static int read_brightness(struct backlight_device *bd) in read_brightness() argument
1401 static int update_bl_status(struct backlight_device *bd) in update_bl_status() argument
1403 int intensity = bd->props.brightness; in update_bl_status()
1405 if (bd->props.power != FB_BLANK_UNBLANK) in update_bl_status()
1407 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in update_bl_status()
1423 struct backlight_device *bd; in acer_backlight_init() local
1428 bd = backlight_device_register("acer-wmi", dev, NULL, &acer_bl_ops, in acer_backlight_init()
1430 if (IS_ERR(bd)) { in acer_backlight_init()
1433 return PTR_ERR(bd); in acer_backlight_init()
1436 acer_backlight_device = bd; in acer_backlight_init()
1438 bd->props.power = FB_BLANK_UNBLANK; in acer_backlight_init()
1439 bd->props.brightness = read_brightness(bd); in acer_backlight_init()
1440 backlight_update_status(bd); in acer_backlight_init()