From patchwork Fri Mar 2 09:10:03 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 144158 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id 4891AB6EE7 for ; Fri, 2 Mar 2012 20:10:12 +1100 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1S3OV9-0002xM-4h for incoming@patchwork.ozlabs.org; Fri, 02 Mar 2012 09:10:11 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1S3OV5-0002wj-9c for fwts-devel@lists.ubuntu.com; Fri, 02 Mar 2012 09:10:07 +0000 Received: from cpc19-craw6-2-0-cust5.croy.cable.virginmedia.com ([77.102.228.6] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1S3OV5-0003GE-5v for fwts-devel@lists.ubuntu.com; Fri, 02 Mar 2012 09:10:07 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/3] acpi: wmi: const func args Date: Fri, 2 Mar 2012 09:10:03 +0000 Message-Id: <1330679404-8789-3-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.9 In-Reply-To: <1330679404-8789-1-git-send-email-colin.king@canonical.com> References: <1330679404-8789-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- src/acpi/wmi/wmi.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/acpi/wmi/wmi.c b/src/acpi/wmi/wmi.c index c7e3b15..8190e17 100644 --- a/src/acpi/wmi/wmi.c +++ b/src/acpi/wmi/wmi.c @@ -112,7 +112,7 @@ static char *wmi_wdg_flags_to_text(const fwts_wmi_flags flags) } static void wmi_parse_wdg_data(fwts_framework *fw, - int size, uint8_t *wdg_data, bool *result) + const int size, const uint8_t *wdg_data, bool *result) { int i; int advice_given = 0; @@ -191,7 +191,7 @@ static void wmi_parse_wdg_data(fwts_framework *fw, } static void wmi_get_wdg_data(fwts_framework *fw, - fwts_list_link *item, int size, uint8_t *wdg_data) + fwts_list_link *item, const int size, uint8_t *wdg_data) { char *str; uint8_t *data = wdg_data; @@ -300,7 +300,7 @@ static void wmi_parse_for_wdg(fwts_framework *fw, } static int wmi_table(fwts_framework *fw, - char *table, int which, char *name, bool *result) + const char *table, const int which, const char *name, bool *result) { fwts_list_link *item; fwts_list* iasl_output;