aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/power/process.c
diff options
context:
space:
mode:
authorLan Tianyu <tianyu.lan@intel.com>2013-07-30 14:00:42 +0200
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2013-07-30 14:00:42 +0200
commit016d5baad04269e8559332df05f89bd95b52d6ad (patch)
tree63310e723423864607bb80e2db7d8bb441b9ea44 /kernel/power/process.c
parentcpufreq: Fix cpufreq driver module refcount balance after suspend/resume (diff)
downloadlinux-dev-016d5baad04269e8559332df05f89bd95b52d6ad.tar.xz
linux-dev-016d5baad04269e8559332df05f89bd95b52d6ad.zip
ACPI / battery: Fix parsing _BIX return value
The _BIX method returns extended battery info as a package. According the ACPI spec (ACPI 5, Section 10.2.2.2), the first member of that package should be "Revision". However, the current ACPI battery driver treats the first member as "Power Unit" which should be the second member. This causes the result of _BIX return data parsing to be incorrect. Fix this by adding a new member called 'revision' to struct acpi_battery and adding the offsetof() information on it to extended_info_offsets[] as the first row. [rjw: Changelog] Reported-and-tested-by: Jan Hoffmann <jan.christian.hoffmann@gmail.com> References: http://bugzilla.kernel.org/show_bug.cgi?id=60519 Signed-off-by: Lan Tianyu <tianyu.lan@intel.com> Cc: 2.6.34+ <stable@vger.kernel.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to '')
0 files changed, 0 insertions, 0 deletions