static int update_bl_status(struct backlight_device *bd) { struct asus_laptop *asus = bl_get_data(bd); int rv; int value = bd->props.brightness; rv = asus_set_brightness(bd, value); if (rv) return rv; value = (bd->props.power == FB_BLANK_UNBLANK) ? 1 : 0; return asus_lcd_set(asus, value); }
static int update_bl_status(struct backlight_device *bd) { int value = bd->props.brightness; return asus_set_brightness(bd, value); }