From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mika Westerberg Subject: Re: [PATCH] ACPI / PM: Use ACPI_COMPANION() to get ACPI companions of devices Date: Tue, 21 Jan 2014 11:45:13 +0200 Message-ID: <20140121094513.GK18029@intel.com> References: <3698474.jasU9n7YCg@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mga11.intel.com ([192.55.52.93]:51562 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753871AbaAUJiV (ORCPT ); Tue, 21 Jan 2014 04:38:21 -0500 Content-Disposition: inline In-Reply-To: <3698474.jasU9n7YCg@vostro.rjw.lan> Sender: linux-pm-owner@vger.kernel.org List-Id: linux-pm@vger.kernel.org To: "Rafael J. Wysocki" Cc: ACPI Devel Maling List , LKML , Linux PM list , Aaron Lu On Sun, Jan 19, 2014 at 04:38:33PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > The ACPI device PM code in device_pm.c uses a special function, > acpi_dev_pm_get_node(), to obtain an ACPI companion object of a given > device. However, that is not necessary any more after recent changes > that introduced the ACPI_COMPANION() macro serving exactly the same > purpose, but working in a much more straightforward way. For this > reason, drop acpi_dev_pm_get_node() and use ACPI_COMPANION() instead > of it everywhere. > > Signed-off-by: Rafael J. Wysocki Reviewed-by: Mika Westerberg