Patchwork Update FADT preferred PM profile to add Tablet

login
register
mail settings
Submitter Colin King
Date July 17, 2012, 4:09 a.m.
Message ID <1342498180-3161-1-git-send-email-colin.king@canonical.com>
Download mbox | patch
Permalink /patch/171315/
State Accepted
Headers show

Comments

Colin King - July 17, 2012, 4:09 a.m.
From: Colin Ian King <colin.king@canonical.com>

Signed-off-by: Colin Ian King <colin.king@canonical.com>
---
 src/lib/include/fwts_acpi.h |    2 +-
 src/lib/src/fwts_acpi.c     |    1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
Alex Hung - July 18, 2012, 2:58 a.m.
On 07/17/2012 12:09 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/lib/include/fwts_acpi.h |    2 +-
>   src/lib/src/fwts_acpi.c     |    1 +
>   2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
> index 26bbf13..d559468 100644
> --- a/src/lib/include/fwts_acpi.h
> +++ b/src/lib/include/fwts_acpi.h
> @@ -45,7 +45,7 @@
>   extern char *fwts_acpi_fadt_preferred_pm_profile[];
>
>   #define FWTS_ACPI_FADT_PREFERRED_PM_PROFILE(x)		\
> -	((x) > 7) ? "Reserved" : fwts_acpi_fadt_preferred_pm_profile[x]
> +	((x) > 8) ? "Reserved" : fwts_acpi_fadt_preferred_pm_profile[x]
>
>   /* 5.2.3.1 Generic Address Structure */
>   typedef struct {
> diff --git a/src/lib/src/fwts_acpi.c b/src/lib/src/fwts_acpi.c
> index e014d3a..a48135a 100644
> --- a/src/lib/src/fwts_acpi.c
> +++ b/src/lib/src/fwts_acpi.c
> @@ -37,6 +37,7 @@ char *fwts_acpi_fadt_preferred_pm_profile[] = {
>   	"SOHO Server",
>   	"Appliance PC",
>   	"Performance Server",
> +	"Tablet",
>   };
>
>   /*
>
acked-by: Alex Hung <alex.hung@canonical.com>
Ivan Hu - July 18, 2012, 3:54 a.m.
On 07/17/2012 12:09 PM, Colin King wrote:
> From: Colin Ian King <colin.king@canonical.com>
>
> Signed-off-by: Colin Ian King <colin.king@canonical.com>
> ---
>   src/lib/include/fwts_acpi.h |    2 +-
>   src/lib/src/fwts_acpi.c     |    1 +
>   2 files changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
> index 26bbf13..d559468 100644
> --- a/src/lib/include/fwts_acpi.h
> +++ b/src/lib/include/fwts_acpi.h
> @@ -45,7 +45,7 @@
>   extern char *fwts_acpi_fadt_preferred_pm_profile[];
>
>   #define FWTS_ACPI_FADT_PREFERRED_PM_PROFILE(x)		\
> -	((x) > 7) ? "Reserved" : fwts_acpi_fadt_preferred_pm_profile[x]
> +	((x) > 8) ? "Reserved" : fwts_acpi_fadt_preferred_pm_profile[x]
>
>   /* 5.2.3.1 Generic Address Structure */
>   typedef struct {
> diff --git a/src/lib/src/fwts_acpi.c b/src/lib/src/fwts_acpi.c
> index e014d3a..a48135a 100644
> --- a/src/lib/src/fwts_acpi.c
> +++ b/src/lib/src/fwts_acpi.c
> @@ -37,6 +37,7 @@ char *fwts_acpi_fadt_preferred_pm_profile[] = {
>   	"SOHO Server",
>   	"Appliance PC",
>   	"Performance Server",
> +	"Tablet",
>   };
>
>   /*
>


Acked-by: Ivan Hu<ivan.hu@canonical.com>

Patch

diff --git a/src/lib/include/fwts_acpi.h b/src/lib/include/fwts_acpi.h
index 26bbf13..d559468 100644
--- a/src/lib/include/fwts_acpi.h
+++ b/src/lib/include/fwts_acpi.h
@@ -45,7 +45,7 @@ 
 extern char *fwts_acpi_fadt_preferred_pm_profile[];
 
 #define FWTS_ACPI_FADT_PREFERRED_PM_PROFILE(x)		\
-	((x) > 7) ? "Reserved" : fwts_acpi_fadt_preferred_pm_profile[x]
+	((x) > 8) ? "Reserved" : fwts_acpi_fadt_preferred_pm_profile[x]
 
 /* 5.2.3.1 Generic Address Structure */
 typedef struct {
diff --git a/src/lib/src/fwts_acpi.c b/src/lib/src/fwts_acpi.c
index e014d3a..a48135a 100644
--- a/src/lib/src/fwts_acpi.c
+++ b/src/lib/src/fwts_acpi.c
@@ -37,6 +37,7 @@  char *fwts_acpi_fadt_preferred_pm_profile[] = {
 	"SOHO Server",
 	"Appliance PC",
 	"Performance Server",
+	"Tablet",
 };
 
 /*