Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-12 Thread Aaron Lu
On 11/11/2013 09:45 PM, Rafael J. Wysocki wrote: > On Monday, November 11, 2013 09:21:40 AM Lan Tianyu wrote: >> On 2013年11月10日 08:58, Rafael J. Wysocki wrote: >>> From: Rafael J. Wysocki >>> >>> Modify struct acpi_dev_node to contain a pointer to struct device >>> ambedded in the struct acpi_devi

Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-12 Thread Rafael J. Wysocki
On Tuesday, November 12, 2013 11:24:02 AM Mika Westerberg wrote: > On Mon, Nov 11, 2013 at 02:45:39PM +0100, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > Subject: ACPI / driver core: Store an ACPI device pointer in struct > > acpi_dev_node > > > > Modify struct acpi_dev_node to conta

Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-12 Thread Mika Westerberg
On Mon, Nov 11, 2013 at 02:45:39PM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > Subject: ACPI / driver core: Store an ACPI device pointer in struct > acpi_dev_node > > Modify struct acpi_dev_node to contain a pointer to struct acpi_device > associated with the given device object

Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-11 Thread Rafael J. Wysocki
On Monday, November 11, 2013 07:03:18 AM Greg Kroah-Hartman wrote: > On Mon, Nov 11, 2013 at 02:45:39PM +0100, Rafael J. Wysocki wrote: > > On Monday, November 11, 2013 09:21:40 AM Lan Tianyu wrote: > > > On 2013年11月10日 08:58, Rafael J. Wysocki wrote: > > > > From: Rafael J. Wysocki > > > > > > >

Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-11 Thread Greg Kroah-Hartman
On Mon, Nov 11, 2013 at 02:45:39PM +0100, Rafael J. Wysocki wrote: > On Monday, November 11, 2013 09:21:40 AM Lan Tianyu wrote: > > On 2013年11月10日 08:58, Rafael J. Wysocki wrote: > > > From: Rafael J. Wysocki > > > > > > Modify struct acpi_dev_node to contain a pointer to struct device > > > ambe

Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-11 Thread Rafael J. Wysocki
On Monday, November 11, 2013 09:21:40 AM Lan Tianyu wrote: > On 2013年11月10日 08:58, Rafael J. Wysocki wrote: > > From: Rafael J. Wysocki > > > > Modify struct acpi_dev_node to contain a pointer to struct device > > ambedded in the struct acpi_device associated with the given device > > object (tha

Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-10 Thread Lan Tianyu
+ linux-pm/drivers/spi/spi.c > @@ -1024,7 +1024,7 @@ static acpi_status acpi_spi_add_device(a > return AE_NO_MEMORY; > } > > - ACPI_HANDLE_SET(&spi->dev, handle); > + ACPI_COMPANION_SET(&spi->dev, &adev->dev); > spi->i

Re: [PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-10 Thread Greg Kroah-Hartman
On Sun, Nov 10, 2013 at 01:58:42AM +0100, Rafael J. Wysocki wrote: > From: Rafael J. Wysocki > > Modify struct acpi_dev_node to contain a pointer to struct device > ambedded in the struct acpi_device associated with the given device > object (that is, its ACPI companion device) instead of an ACPI

[PATCH] ACPI / driver core: Store a device pointer in struct acpi_dev_node

2013-11-09 Thread Rafael J. Wysocki
From: Rafael J. Wysocki Modify struct acpi_dev_node to contain a pointer to struct device ambedded in the struct acpi_device associated with the given device object (that is, its ACPI companion device) instead of an ACPI handle corresponding to that struct acpi_device. Introduce two new macros f