diff mbox

acpi: method: acpi 6.0 adds USB-C Connection to _UPC

Message ID 1465204766-10047-1-git-send-email-alex.hung@canonical.com
State Accepted
Headers show

Commit Message

Alex Hung June 6, 2016, 9:19 a.m. UTC
Signed-off-by: Alex Hung <alex.hung@canonical.com>
---
 src/acpi/method/method.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Colin Ian King June 6, 2016, 9:31 a.m. UTC | #1
On 06/06/16 10:19, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>  src/acpi/method/method.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
> index 3150663..7adb3fa 100644
> --- a/src/acpi/method/method.c
> +++ b/src/acpi/method/method.c
> @@ -4599,7 +4599,7 @@ static void method_test_UPC_return(
>  		return;
>  
>  	connector_type = obj->Package.Elements[1].Integer.Value;
> -	if (connector_type  > 6 && connector_type < 0xFF) {
> +	if (connector_type  > 0x0a && connector_type < 0xFF) {
>  		fwts_failed(fw, LOG_LEVEL_MEDIUM, "Method_UPCBadReturnType",
>  			"%s element 1 returned reserved value.", name);
>  		return;
> 
Acked-by: Colin Ian King <colin.king@canonical.com>
Ivan Hu June 8, 2016, 7:08 a.m. UTC | #2
On 2016年06月06日 17:19, Alex Hung wrote:
> Signed-off-by: Alex Hung <alex.hung@canonical.com>
> ---
>   src/acpi/method/method.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
> index 3150663..7adb3fa 100644
> --- a/src/acpi/method/method.c
> +++ b/src/acpi/method/method.c
> @@ -4599,7 +4599,7 @@ static void method_test_UPC_return(
>   		return;
>
>   	connector_type = obj->Package.Elements[1].Integer.Value;
> -	if (connector_type  > 6 && connector_type < 0xFF) {
> +	if (connector_type  > 0x0a && connector_type < 0xFF) {
>   		fwts_failed(fw, LOG_LEVEL_MEDIUM, "Method_UPCBadReturnType",
>   			"%s element 1 returned reserved value.", name);
>   		return;
>

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

Patch

diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
index 3150663..7adb3fa 100644
--- a/src/acpi/method/method.c
+++ b/src/acpi/method/method.c
@@ -4599,7 +4599,7 @@  static void method_test_UPC_return(
 		return;
 
 	connector_type = obj->Package.Elements[1].Integer.Value;
-	if (connector_type  > 6 && connector_type < 0xFF) {
+	if (connector_type  > 0x0a && connector_type < 0xFF) {
 		fwts_failed(fw, LOG_LEVEL_MEDIUM, "Method_UPCBadReturnType",
 			"%s element 1 returned reserved value.", name);
 		return;