|
@@ -254,10 +254,12 @@ static int bl_update_status(struct backlight_device *b)
|
|
{
|
|
{
|
|
struct acpi_device *device = bl_get_data(b);
|
|
struct acpi_device *device = bl_get_data(b);
|
|
|
|
|
|
- if (b->props.power == FB_BLANK_POWERDOWN)
|
|
|
|
- call_fext_func(fext, FUNC_BACKLIGHT, 0x1, 0x4, 0x3);
|
|
|
|
- else
|
|
|
|
- call_fext_func(fext, FUNC_BACKLIGHT, 0x1, 0x4, 0x0);
|
|
|
|
|
|
+ if (fext) {
|
|
|
|
+ if (b->props.power == FB_BLANK_POWERDOWN)
|
|
|
|
+ call_fext_func(fext, FUNC_BACKLIGHT, 0x1, 0x4, 0x3);
|
|
|
|
+ else
|
|
|
|
+ call_fext_func(fext, FUNC_BACKLIGHT, 0x1, 0x4, 0x0);
|
|
|
|
+ }
|
|
|
|
|
|
return set_lcd_level(device, b->props.brightness);
|
|
return set_lcd_level(device, b->props.brightness);
|
|
}
|
|
}
|