From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg Kroah-Hartman Subject: Re: [Update 2][PATCH 2/3] ACPI / driver core: Introduce struct acpi_dev_node and related macros Date: Tue, 20 Nov 2012 10:08:19 -0800 Message-ID: <20121120180819.GA12328@kroah.com> References: <1352977397-2280-1-git-send-email-mika.westerberg@linux.intel.com> <6570191.KCDMiILtRE@vostro.rjw.lan> <20121120091007.GN17774@intel.com> <2800515.q4oG7o9rEp@vostro.rjw.lan> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mail-da0-f46.google.com ([209.85.210.46]:37952 "EHLO mail-da0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752055Ab2KTSIX (ORCPT ); Tue, 20 Nov 2012 13:08:23 -0500 Received: by mail-da0-f46.google.com with SMTP id p5so1341747dak.19 for ; Tue, 20 Nov 2012 10:08:23 -0800 (PST) Content-Disposition: inline In-Reply-To: <2800515.q4oG7o9rEp@vostro.rjw.lan> Sender: linux-acpi-owner@vger.kernel.org List-Id: linux-acpi@vger.kernel.org To: "Rafael J. Wysocki" Cc: Mika Westerberg , Bjorn Helgaas , Jean Delvare , ben-linux@fluff.org, w.sang@pengutronix.de, linux-kernel@vger.kernel.org, lenb@kernel.org, rafael.j.wysocki@intel.com, broonie@opensource.wolfsonmicro.com, grant.likely@secretlab.ca, linus.walleij@linaro.org, mathias.nyman@linux.intel.com, linux-acpi@vger.kernel.org On Tue, Nov 20, 2012 at 10:34:04AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > Subject: ACPI / driver core: Introduce struct acpi_dev_node and related macros > > To avoid adding an ACPI handle pointer to struct device on > architectures that don't use ACPI, or generally when CONFIG_ACPI is > not set, in which cases that pointer is useless, define struct > acpi_dev_node that will contain the handle pointer if CONFIG_ACPI is > set and will be empty otherwise and use it to represent the ACPI > device node field in struct device. > > In addition to that define macros for reading and setting the ACPI > handle of a device that don't generate code when CONFIG_ACPI is > unset. Modify the ACPI subsystem to use those macros instead of > referring to the given device's ACPI handle directly. > > Signed-off-by: Rafael J. Wysocki Acked-by: Greg Kroah-Hartman