From patchwork Fri Sep 6 17:13:47 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bjorn Helgaas X-Patchwork-Id: 2854578 Return-Path: X-Original-To: patchwork-linux-acpi@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 28C5E9F494 for ; Fri, 6 Sep 2013 17:13:59 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 40F5D202C7 for ; Fri, 6 Sep 2013 17:13:55 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A51E7202E8 for ; Fri, 6 Sep 2013 17:13:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753502Ab3IFRNv (ORCPT ); Fri, 6 Sep 2013 13:13:51 -0400 Received: from mail-yh0-f48.google.com ([209.85.213.48]:38665 "EHLO mail-yh0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753011Ab3IFRNu (ORCPT ); Fri, 6 Sep 2013 13:13:50 -0400 Received: by mail-yh0-f48.google.com with SMTP id f10so1312126yha.21 for ; Fri, 06 Sep 2013 10:13:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=subject:to:from:cc:date:message-id:in-reply-to:references :user-agent:mime-version:content-type:content-transfer-encoding; bh=HJiTn3rXQbDGLf6frv+/V1z8McyP0rRZwIMP+oJBY0I=; b=BY+7oT3gLl+mdVN43VHLqGl5wFcuB51d+GOcGvKhYBrVbt9VF1Nqdd06Ld2KmrxRZz eFKcJemW/k+V6hUL1jl1xAu5E+DdGKA74garFzty2fhJmYujK+sLfUA59n0VjJIHlzxM 89vRsydD4xbfQFRRBhuqh9aGQV2L0GYtt3THQDPqNE/o1cm/mqUJRugPkRLyiYdqbErF RXB4FooccsSAganvaC7rimLcrvO/Vk3NNwwEnFOdIoYl0BugLu4xz20GVAjuKRO2puJ7 ZLDyjP3THqlniB+Y5uFL1ZFjy33Zyo/w2JGSMTFnL8/wenkvH4wIIX4UJRYj3jqsUBXo tfQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:subject:to:from:cc:date:message-id:in-reply-to :references:user-agent:mime-version:content-type :content-transfer-encoding; bh=HJiTn3rXQbDGLf6frv+/V1z8McyP0rRZwIMP+oJBY0I=; b=ISGmh8e2Ox0jxZjCtNA/ijj9LrX0O1Adr1jhHZfXLzzf+QdN3SN0O93VlIeRQ3wFva yN363zbB5nynY4Qwvxsw5g1/342yJDTSViz0xK8yvhvDl0zUFEXb11hyOytw+URqx8iq jVM3KiIobJHWMOA7Syc6CNyDTfDhPOcV6RhAgGESjdf98yjcFpyot1ZOXR03Y4OAfMeD I6w7PntXhA8d32v/HemX2Xgi44WdCWnjtvX11xNkMEA2lK2XLZxFwGgw3xLAtkRxtNxO qXj5qkujT5CMEfxrdwbWSXQKqzbdOGlqPk4TMjklbYJq3mSRZqBlAYXEwOjc9UI0Q2ZB tIVg== X-Gm-Message-State: ALoCoQnt/+SUzlD1iQINm5M4P0E+JYgjzEC+wHSKG1DLQJ8CcfQU60DfDV4uL+Rw4NgP2BJrsaZXKamLI0nk4BZ2nyaB1/v/3LnHa7pJLYNIn06DJpPk/u3S2ZLDcyLzcoRsQyPW5lXisl3BxWUICRc6UaaW7yJ09KEFNWu9uIClBJWoPCzViztJfB57+RRxTPmfxTAY7OV7rFSYi6PDLrMtoPOKMzx2pw== X-Received: by 10.236.163.228 with SMTP id a64mr3126469yhl.35.1378487630260; Fri, 06 Sep 2013 10:13:50 -0700 (PDT) Received: from localhost ([172.16.53.165]) by mx.google.com with ESMTPSA id u52sm4089351yhg.5.1969.12.31.16.00.00 (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Fri, 06 Sep 2013 10:13:49 -0700 (PDT) Subject: [PATCH 03/14] ACPI: Tidy acpi_run_osc() declarations To: linux-pci@vger.kernel.org From: Bjorn Helgaas Cc: "Rafael J. Wysocki" , linux-acpi@vger.kernel.org, Len Brown Date: Fri, 06 Sep 2013 11:13:47 -0600 Message-ID: <20130906171347.11482.54142.stgit@bhelgaas-glaptop> In-Reply-To: <20130906171010.11482.34235.stgit@bhelgaas-glaptop> References: <20130906171010.11482.34235.stgit@bhelgaas-glaptop> User-Agent: StGit/0.16 MIME-Version: 1.0 Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Spam-Status: No, score=-9.2 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Move the acpi_run_osc() prototype next to the related structure and update comments. No functional change. Signed-off-by: Bjorn Helgaas --- include/linux/acpi.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 3ba9fe3..902cccf 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -294,12 +294,14 @@ void __init acpi_nvs_nosave_s3(void); #endif /* CONFIG_PM_SLEEP */ struct acpi_osc_context { - char *uuid_str; /* uuid string */ + char *uuid_str; /* UUID string */ int rev; - struct acpi_buffer cap; /* arg2/arg3 */ - struct acpi_buffer ret; /* free by caller if success */ + struct acpi_buffer cap; /* list of DWORD capabilities */ + struct acpi_buffer ret; /* free by caller if success */ }; +acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); + /* Indexes into _OSC Capabilities Buffer (DWORDs 2 & 3 are device-specific) */ #define OSC_QUERY_DWORD 0 /* DWORD 1 */ #define OSC_SUPPORT_DWORD 1 /* DWORD 2 */ @@ -312,8 +314,6 @@ struct acpi_osc_context { #define OSC_INVALID_REVISION_ERROR 0x00000008 /* return */ #define OSC_CAPABILITIES_MASK_ERROR 0x00000010 /* return */ -acpi_status acpi_run_osc(acpi_handle handle, struct acpi_osc_context *context); - /* Platform-Wide Capabilities _OSC: Capabilities DWORD 2: Support Field */ #define OSC_SB_PAD_SUPPORT 0x00000001 #define OSC_SB_PPC_OST_SUPPORT 0x00000002