On Wed, Jan 14, 2009 at 03:32:17PM +0530, Pillai, Manikandan wrote:

> > From: Mark Brown [mailto:[email protected]]

> > With current mainline this should be rewritten as:
> > 
> >     rdev = regulator_register(&regulators[id->driver_data],
> >                               &client->dev, client);
> > 
> > though I'm not sure what's currently merged up into the OMAP trees.

> The issue is that passing the initial value for regulators is done by

> struct regulator_init_data *init_data = dev->platform_data;

> in regulator_register() function. Do we have a way to initialize the
> platform data for the i2c client struct.

The platform data is part of the struct device so you with your current
code your driver can just assign directly to it.
--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to