[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1525112.xFLEyNyU7b@vostro.rjw.lan>
Date: Fri, 16 Nov 2012 21:18:35 +0100
From: "Rafael J. Wysocki" <rjw@...k.pl>
To: Mika Westerberg <mika.westerberg@...ux.intel.com>
Cc: Jean Delvare <khali@...ux-fr.org>, ben-linux@...ff.org,
w.sang@...gutronix.de, linux-kernel@...r.kernel.org,
lenb@...nel.org, rafael.j.wysocki@...el.com,
broonie@...nsource.wolfsonmicro.com, grant.likely@...retlab.ca,
linus.walleij@...aro.org, bhelgaas@...gle.com,
mathias.nyman@...ux.intel.com, linux-acpi@...r.kernel.org
Subject: Re: [PATCH v2 3/3] i2c / ACPI: add ACPI enumeration support
On Friday, November 16, 2012 10:09:34 PM Mika Westerberg wrote:
> On Fri, Nov 16, 2012 at 09:02:36PM +0100, Rafael J. Wysocki wrote:
> > Ah, that's what's called by acpi_dev_get_resources(). But what about writing
> > it this way:
> >
> > static int acpi_i2c_find_child_address(struct acpi_resource *ares, void *data)
> > {
> >
> > if (ares->type == ACPI_RESOURCE_TYPE_SERIAL_BUS) {
> > struct acpi_resource_i2c_serialbus *sb;
> >
> > sb = &ares->data.i2c_serial_bus;
> > if (sb->type == ACPI_RESOURCE_SERIAL_TYPE_I2C) {
> > struct acpi_i2c_find *i2c_find = data;
> >
> > if (sb->slave_address == i2c_find->addr)
> > i2c_find->found = true;
> > }
> > }
> >
> > /* Tell the ACPI core to skip this resource. */
> > return 1;
> > }
>
> Not a problem at all, I'll do it like above and also with the SPI case.
> I'll wait til tomorrow for more comments and post v3 unless there are
> objections.
OK, thanks!
--
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists