| .. | .. |
|---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
|---|
| 1 | 2 | /* |
|---|
| 2 | 3 | * |
|---|
| 3 | 4 | * Backlight driver for HP Jornada 700 series (710/720/728) |
|---|
| 4 | 5 | * Copyright (C) 2006-2009 Kristoffer Ericson <kristoffer.ericson@gmail.com> |
|---|
| 5 | | - * |
|---|
| 6 | | - * This program is free software; you can redistribute it and/or |
|---|
| 7 | | - * modify it under the terms of the GNU General Public License version |
|---|
| 8 | | - * 2 or any later version as published by the Free Software Foundation. |
|---|
| 9 | | - * |
|---|
| 10 | 6 | */ |
|---|
| 11 | 7 | |
|---|
| 12 | 8 | #include <linux/backlight.h> |
|---|
| .. | .. |
|---|
| 58 | 54 | jornada_ssp_start(); |
|---|
| 59 | 55 | |
|---|
| 60 | 56 | /* If backlight is off then really turn it off */ |
|---|
| 61 | | - if ((bd->props.power != FB_BLANK_UNBLANK) || (bd->props.fb_blank != FB_BLANK_UNBLANK)) { |
|---|
| 57 | + if (backlight_is_blank(bd)) { |
|---|
| 62 | 58 | ret = jornada_ssp_byte(BRIGHTNESSOFF); |
|---|
| 63 | 59 | if (ret != TXDUMMY) { |
|---|
| 64 | 60 | dev_info(&bd->dev, "brightness off timeout\n"); |
|---|