diff options
author | Felipe Contreras <felipe.contreras@gmail.com> | 2013-08-03 22:28:09 +0200 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-08-03 22:28:09 +0200 |
commit | d8648caf55051c7c7609cc3538174930cef205ac (patch) | |
tree | 51fc70c301d9fc38caa11650c30733fbd6b08529 /drivers/acpi | |
parent | 7c364e79aab6246675436bfc8e50e1ffba15dd63 (diff) | |
download | op-kernel-dev-d8648caf55051c7c7609cc3538174930cef205ac.zip op-kernel-dev-d8648caf55051c7c7609cc3538174930cef205ac.tar.gz |
ACPI / video: drop unused fields from struct acpi_video_brightness_flags
The _BCM_use_index and _BCL_use_index fields in struct
acpi_video_brightness_flags are not used, so drop them.
[rjw: Changelog]
Signed-off-by: Felipe Contreras <felipe.contreras@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/acpi')
-rw-r--r-- | drivers/acpi/video.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/drivers/acpi/video.c b/drivers/acpi/video.c index 8681727..159c935 100644 --- a/drivers/acpi/video.c +++ b/drivers/acpi/video.c @@ -185,8 +185,6 @@ struct acpi_video_device_cap { struct acpi_video_brightness_flags { u8 _BCL_no_ac_battery_levels:1; /* no AC/Battery levels in _BCL */ u8 _BCL_reversed:1; /* _BCL package is in a reversed order */ - u8 _BCL_use_index:1; /* levels in _BCL are index values */ - u8 _BCM_use_index:1; /* input of _BCM is an index value */ u8 _BQC_use_index:1; /* _BQC returns an index value */ }; @@ -809,16 +807,6 @@ acpi_video_init_brightness(struct acpi_video_device *device) br->count = count; device->brightness = br; - /* Check the input/output of _BQC/_BCL/_BCM */ - if ((max_level < 100) && (max_level <= (count - 2))) - br->flags._BCL_use_index = 1; - - /* - * _BCM is always consistent with _BCL, - * at least for all the laptops we have ever seen. - */ - br->flags._BCM_use_index = br->flags._BCL_use_index; - /* _BQC uses INDEX while _BCL uses VALUE in some laptops */ br->curr = level = max_level; |