FreeBSD Bugzilla – Attachment 88011 Details for
Bug 124744
[acpi] [patch] incorrect _BST result validation for Tosh Satellite P20
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 632 bytes, created by
Yuri Skripachov
on 2008-06-19 07:20:02 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Yuri Skripachov
Created:
2008-06-19 07:20:02 UTC
Size:
632 bytes
patch
obsolete
>--- acpi_battery.c.orig 2008-06-19 09:35:41.000000000 +0400 >+++ acpi_battery.c 2008-06-19 09:36:05.000000000 +0400 >@@ -101,8 +101,10 @@ > int > acpi_battery_bst_valid(struct acpi_bst *bst) > { >- return (bst->state < ACPI_BATT_STAT_MAX && bst->cap != ACPI_BATT_UNKNOWN && >- bst->volt != ACPI_BATT_UNKNOWN); >+#define ACPI_BATT_STAT_IMPOSSIBLE (ACPI_BATT_STAT_CHARGING | ACPI_BATT_STAT_DISCHARG) >+ return ((bst->state & ACPI_BATT_STAT_IMPOSSIBLE) != ACPI_BATT_STAT_IMPOSSIBLE && >+ bst->cap != ACPI_BATT_UNKNOWN && bst->volt != ACPI_BATT_UNKNOWN); >+#undef ACPI_BATT_STAT_IMPOSSIBLE > } > > /* Check _BIF results for validity. */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 124744
: 88011