[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <200810222315.26576.david-b@pacbell.net>
Date: Wed, 22 Oct 2008 23:15:26 -0700
From: David Brownell <david-b@...bell.net>
To: avorontsov@...mvista.com
Cc: benh@...nel.crashing.org, linux-kernel@...r.kernel.org,
linuxppc-dev@...abs.org, i2c@...sensors.org,
Jean Delvare <khali@...ux-fr.org>,
David Miller <davem@...emloft.net>
Subject: Re: [PATCH 4/7] gpiolib: implement dev_gpiochip_{add,remove} calls
On Wednesday 22 October 2008, Anton Vorontsov wrote:
> --- a/drivers/gpio/pcf857x.c
> +++ b/drivers/gpio/pcf857x.c
> @@ -187,7 +187,7 @@ static int pcf857x_probe(struct i2c_client *client,
> struct pcf857x *gpio;
> int status;
>
> - pdata = client->dev.platform_data;
> + pdata = pcf857x_get_pdata(client);
> if (!pdata)
> return -ENODEV;
>
I suppose that can work. Regardless, some OF-specific code will
need to map device tree state into a generic format that's fully
decoupled from OF. (And there's something to be said to having
that mapping sit in the same directory as the driver needing it.)
--
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