From patchwork Fri Nov 8 03:43:09 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alex Hung X-Patchwork-Id: 289687 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from huckleberry.canonical.com (huckleberry.canonical.com [91.189.94.19]) by ozlabs.org (Postfix) with ESMTP id 8096D2C0098 for ; Fri, 8 Nov 2013 14:43:31 +1100 (EST) Received: from localhost ([127.0.0.1] helo=huckleberry.canonical.com) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Vecyo-0003Q7-DL; Fri, 08 Nov 2013 03:43:30 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by huckleberry.canonical.com with esmtp (Exim 4.76) (envelope-from ) id 1Vecyj-0003Nf-1g for fwts-devel@lists.ubuntu.com; Fri, 08 Nov 2013 03:43:25 +0000 Received: from [175.41.48.77] (helo=canonical.com) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Vecyi-0002p9-Dr; Fri, 08 Nov 2013 03:43:25 +0000 From: Alex Hung To: fwts-devel@lists.ubuntu.com Subject: [PATCH 3/3] acpi: method: add _CID control method test (LP: #1249174) Date: Fri, 8 Nov 2013 11:43:09 +0800 Message-Id: <1383882189-20997-3-git-send-email-alex.hung@canonical.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1383882189-20997-1-git-send-email-alex.hung@canonical.com> References: <1383882189-20997-1-git-send-email-alex.hung@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.14 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: fwts-devel-bounces@lists.ubuntu.com Sender: fwts-devel-bounces@lists.ubuntu.com Signed-off-by: Alex Hung Acked-by: Colin Ian King Acked-by: Keng-Yu Lin --- src/acpi/method/method.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c index 05fb2bc..71c6a77 100644 --- a/src/acpi/method/method.c +++ b/src/acpi/method/method.c @@ -1002,6 +1002,12 @@ static int method_test_HID(fwts_framework *fw) "_HID", NULL, 0, method_test_HID_return, NULL); } +static int method_test_CID(fwts_framework *fw) +{ + return method_evaluate_method(fw, METHOD_OPTIONAL, + "_CID", NULL, 0, method_test_HID_return, NULL); +} + static int method_test_HRV(fwts_framework *fw) { return method_evaluate_method(fw, METHOD_OPTIONAL, @@ -4817,7 +4823,7 @@ static fwts_framework_minor_test method_tests[] = { /* Section 6.1 Device Identification Objects */ - /* { method_test_CID, "Check _CID (Compatible ID)." }, */ + { method_test_CID, "Check _CID (Compatible ID)." }, /* { method_test_CLS, "Check _CLS (Class Code)." }, */ { method_test_DDN, "Check _DDN (DOS Device Name)." }, { method_test_HID, "Check _HID (Hardware ID)." },