Lines Matching refs:bd
1395 static int read_brightness(struct backlight_device *bd) in read_brightness() argument
1402 static int update_bl_status(struct backlight_device *bd) in update_bl_status() argument
1404 int intensity = bd->props.brightness; in update_bl_status()
1406 if (bd->props.power != FB_BLANK_UNBLANK) in update_bl_status()
1408 if (bd->props.fb_blank != FB_BLANK_UNBLANK) in update_bl_status()
1424 struct backlight_device *bd; in acer_backlight_init() local
1429 bd = backlight_device_register("acer-wmi", dev, NULL, &acer_bl_ops, in acer_backlight_init()
1431 if (IS_ERR(bd)) { in acer_backlight_init()
1434 return PTR_ERR(bd); in acer_backlight_init()
1437 acer_backlight_device = bd; in acer_backlight_init()
1439 bd->props.power = FB_BLANK_UNBLANK; in acer_backlight_init()
1440 bd->props.brightness = read_brightness(bd); in acer_backlight_init()
1441 backlight_update_status(bd); in acer_backlight_init()